import hashlib shutdown = False encoded = (6fb903966f7e47214e6ba42c50436e4bd50c5eecfd4e1101f0d45825) lib = open('dictionary.txt') while (shutdown == False): print (" ") print ("menu") print (" ") print ("1 = Run Program") print ("2 = Quit") userchoice = int(input("Please make a selection: ")) if userchoice == 1: for l in lib: elif userchoice ==2: print ("Shutting down") quit else: print ("That is not a valid selection")
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question