i using python 2.7 , pretty new python. wanted ask why lines in code being skipped although don't see reason them be. my code seen below: def add_client: code adding client def check_clients: code listing out client info modes = {'add': add_client, 'check': check_clients} while true: while true: action = raw_input('input action: \n').lower() if action in modes or ['exit']: break print 'actions available:', in modes: print i.title() + ',', print 'exit' if action in modes: modes[mode](wb) if action == 'exit': break when run code , input action not in list of modes, not print out 'actions available: add, check, exit' , seems skip seen below. input action: k input action: if change code seen below works intended: modes = {'add': add_entries, 'check': check_stats} w...
Comments
Post a Comment