Accept Keyboard Input
(Menu) A B C D E F G H I
Replace the break with the 3 final lines shown.
The final line is also a break but indented further.
Entering 0 is now the only way to exit the loop from keyboard.
#
print ' 0 - Exit'
raw_input(" Press 'Enter' to close: ")
if option == '0':
break
#
Any other input, including Enter alone, is ignored.
Live Links: demo26_02E.txt demo26_02E.pyc