title: How to go back to a previous line in python?
body: <p>How can i make it so that if the last line is true it goes back to beginning of the loop?</p>
  
  <pre><code>p = int(input("input value of p: ")  
  q = int(input("input value of q: ")  
  import random  
  list(range(-q, q)):
  while p != p + 1:
      x1 = random.choice(l)
      x0 = random.choice(l)
      if((q == x0 * x1) and (-p == x0 + x1)):
          print(x0, x1)
      else:
          if((q != x0 * x1) or (-p != x0 + x1)):
              #What do i put here to return to the beginning of the loop?
  </code></pre>