I am a new python user, I have a project which is drawing 2 pictures. I have done it already, however I don't know how to make a menu to ask the user repeatedly like this:
1:Draw picture 1
2. Draw picture 2
3. Exit
Enter an option (1/2/3):
and the other options will cause error Can anyone help me?
Edit 1 : (Posted from comments)
import picture1 
import picture2
while True: 
  menu=raw_input("Menu\n 
  1.Draw multi polygons\n 
  2.Draw flower\n 
  3.exit\n Enter an option(1/2/3): ") 
  if menu == "1":
    return True
  elif menu == "2":
    return False
  else:
    menu == "3": break
 
    