Add More Options
(Menu) A B C D E F G H I
Add two more elifs after the first elif.
Entering 1, 2 or 3 will display an appropriate message.
#
if option == '0':
break
elif option == '1':
print ' 1 selected'
elif option == '2':
print ' 2 selected'
elif option == '3':
print ' 3 selected'
#
Entering 0 still exits. Any other input redisplays the menu.
Live Links: demo26_02G.txt demo26_02G.pyc