A noob question I'm sure. For example, say I have a program that looks something like this.
def method1():
#do something here
def method2():
#do something here
#this is the menu
menu=input("What would you like to do?\ntype 1 for method1 or 2 for method2: ")
if(menu=="1"):
method1()
if(menu=="2"):
method2()
How can I make this menu appear again after a method has finished instead of the program terminating?
I was thinking I could wrap the whole program into an endless loop, but that doesn't feel right :P