Last active
May 3, 2017 02:07
-
-
Save jmieleiii/d88b2162dd78040950f12034cafbcdcc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
difficulties_available = ['easy', 'medium', 'hard'] | |
answers_for = { | |
'easy' : [], | |
'medium': [], | |
'hard' : [] | |
} | |
prompts_for = { | |
'easy' : 'Easy prompt', | |
'medium': 'Medium prompt', | |
'hard' : 'Hard prompt' | |
} | |
difficulty_selected = raw_input( | |
"Please choose a difficulty:" | |
"\n\teasy" | |
"\n\tmedium" | |
"\n\thard\n> ").lower() | |
while difficulty_selected not in difficulties_available: | |
difficulty_selected = raw_input("Please enter a valid difficulty\n> ").lower() | |
print(prompts_for[difficulty_selected]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment