Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tries = 0
- guess = input("Guess my name: ")
- while guess != 'Martin' and guess != 'martin':
- guess = input("Wrong - guess again: ")
- tries = tries + 1
- print("Well done! It took you " + str(tries) + " times to guess correctly!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement