Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- guess = input("Guess my name: ")
- count = 1
- while guess != "Elena":
- count = count + 1
- guess = input("Wrong - Guess again: ")
- if count == 1:
- print("Well done. The number of times it took you to guess my name have been " + str(count))
- else:
- print("Well done. The number of times it took you to guess my name have been " + str(count))
Add Comment
Please, Sign In to add comment