I want to make program which would begin with selecting mode. And then it should stay in that mode until i give to it command to go back to mode selection. Like that:
input=raw_input('Select mode, insert number of wanted mode: \n 1. first mode \n 2. second mode \n 3. Third mode\n')
if input=='1':
while True:
#code
if input=='2':
while True:
#code
if input=='3':
while True:
#code
Which is the best and shortest way to make it go back to mode selection with certain command?
Thanks