Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. Phrase = input('Hello, what is your name?>')
  2. print('Hello ' + Phrase + '!')
  3. Phrase2 = input('Would you like to play a game? Yes or No?>')
  4. if Phrase2 == 'Yes':
  5.     print('Great, lets get underway!')
  6. elif Phrase2 == 'No':
  7.     print('Sad to hear that, maybe next time')
  8. else:
  9.     print('I did not understand your answer, yes or no?>')
  10. if Phrase2 == 'Yes':
  11.     Question1 = input('What is the capital of France?>')
  12. if Question1 == 'Paris':
  13.     print('Very well, that was so easy')
  14. else:
  15.     print('Are you serious?')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement