Skip to content

Instantly share code, notes, and snippets.

@jmieleiii
Last active May 3, 2017 02:07
Show Gist options
  • Save jmieleiii/d88b2162dd78040950f12034cafbcdcc to your computer and use it in GitHub Desktop.
Save jmieleiii/d88b2162dd78040950f12034cafbcdcc to your computer and use it in GitHub Desktop.
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