Display the Options
[Back] <- - + - -> [Next]
Use a sequence of print statements to display a menu of options.
The ### ... are temporary comments included here for explanation.
Excessive commenting like this would not normally appear in finished code.
print ' Menu' ### Quotes may be single as shown here or double using Shift-2.
print ' ====' ### Note the two spaces for alignment.
print ### This prints a blank line - no need for quotes.
print 'a AAA'
print 'b BBB' ### a, b, c are the valid options
print 'c CCC' ### AAA, BBB, CCC would be replaced by appropriate descriptions.
Running the code produces this output:
Menu
====
a AAA
b BBB
c CCC