title: How to make python "goto" a previous line to get more input?
body: <p>So i understand goto is a very bad form of coding, however i need a program to go back to a previous line when the input is incorrect in console.</p>
  
  <pre><code>print ("You wake up.")
  print ("You do what?")
  seg1 = input()
  if seg1 == ("Stand") or seg1 == ("stand") or seg1 == ("stand up") or seg1 == ("Stand up") or seg1 == ("Stand Up"):
      print ("You get up")
      print ("You look around you... your in a dark room. A door hangs slightly ajar infront of you.")
      print ("You do what?")
  else:
      print ("I dont understand")
  </code></pre>
  
  <p>After the else statement has run i want it to repeat line 2 and continue with the program from there... how can i do this?</p>