title: IDLE - Python: Go back to a certain line, how can I do this?
body: <p>I've created a selection menu that asks you to input the command you want to run, I've done this by using <code>if</code> and <code>elif</code> statements however when the command (the if statements) has finished I would like them to go to the line asking which command to run. Here is the code I have at the moment (Right now I have nothing that does this):</p>
  
  <pre>
  
  # Asks which command you want to run.
  word = input("Which command? ")
  
  # Runs the command/s.
  
  if word == "info":
      print("Info command.")
  
  elif word == "replace":
      print("Replace command.")
  
  elif word == "ping":
      print("Ping command")
  
  else:
      print("Command not found")
  
  </pre>
  
  <p>It would be awesome if someone could help, thanks.</p>