Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- guess = input("guess my name ")
- count = 1
- while guess != "Martin":
- guess = input("wrong - guess again ")
- count = count + 1
- if count == 1:
- print("well done, it took you " + str(count) + " go to guess my name.")
- else:
- print("well done, it took you " + str(count) + " goes to guess my name.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement