Python - text menu
Posted on 2012-03-10
I have create a text menu with Python. Once an option is selected, a simple task is performed. Once the task is done, the user is back to the menu (loop). I have created a function and then calling that function from within my codes to display the menu.
How can I not display the entire menu again (once user is done with first selected option) ?
so something like this:
Please select 1 or 2?
user selects 1
Milk is good sources of calcium.
select another option:
I have used loop to create the program, but I'm not sure how to not display the entire menu again.