title: How do I return to the previous while loop?
body: <pre><code>    x, y = raw_input("Enter 2 numbers separated by a space.").split()
  answer = 0
  #Enter the 2 numbers to be calculated.
  print "You have selected, A = "+ x + " and B = " + y + "."
  while int(y):
      if (not int(y) % 2 == 0):
          # this checks if y is even or odd
          answer = int(answer) + int(x)  
          print "A = " + str(x) + " and B = " + str(y) + "."
          print "B is odd so we'll add A to the total."
          print "The running total is " + str(answer) + "."
      else: (int(y) % 2 == 0)
      print "A = " + str(x) + " and B = " + str(y) + "."
      print "B is even, so we'll ignore that number."
  
      x = int(x) * 2
      y = int(y) / 2
  
  print "The product is " + str(answer) + "."
  
  while True:
  
      a = raw_input("Would you like to make another calculation? Y or N")
      if str(a) == "Y" or str(a) == "y":
          continue
      if str(a) == "N" or str(a) == "n":
          print "Thank you have a nice day!"
          break
      else:
          print "Invalid entry. Ending program."
          break
  </code></pre>
  
  <p>I'm trying to get my program to go back to the top while loop if "Y" or "y" is entered for 'Would you like to make another calculation?'. So far what I have returns me to the bottom while loop. Any help? Thanks!</p>