Introduction
[Menu] <- - + - -> [Next]
The following pages show how to develop a Menu system using Python.
Running the code produces this output:
Menu
====
a AAA
b BBB
c CCC
x Exit
Enter your choice: g
Invalid choice
:
Enter your choice: b
You selected "b"
:
Enter your choice: x
Done
The options (a, b, c and x) are the
valid inputs that the menu will accept.
In a proper menu, the text AAA would
be replaced by a proper description.
Invalid choices produce
an error message.
Valid choices are acknowledged.
The cycle repeats until x is entered.