Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. tries = 0
  2. guess = input("Guess my name: ")
  3. while guess != 'Martin' and guess != 'martin':
  4.   guess = input("Wrong - guess again: ")
  5.   tries = tries + 1
  6. print("Well done! It took you " + str(tries) + " times to guess correctly!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement