Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print('Lets play a game, think of a number and I will guess it.\n'
- 'Just follow the directions.\n')
- user_input = input('Are you ready to play? Type y/yes or else quit. ')
- valid_options = ['y', 'yes']
- if user_input.lower() in valid_options:
- print('\nGreat, think of a number any number.')
- steps_list = ['Add 3 to it.', 'Double it.', 'Subtract 4 from it.',
- 'Divide it by 2.', 'Subtract the original number from it.']
- def next_steps():
- user_prompt = 'Press any key to continue.\n'
- for next_step in steps_list:
- input(user_prompt)
- print(next_step)
- next_steps()
- input('Press any key to continue and I will guess your number.\n')
- print('Your number is 1!')
- else:
- print("\nWell you're lame.\n...Bye!")
Advertisement
Add Comment
Please, Sign In to add comment