Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2020
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. guess = input("guess my name ")
  2. count = 1
  3. while guess != "Martin":
  4. guess = input("wrong - guess again ")
  5. count = count + 1
  6. if count == 1:
  7. print("well done, it took you " + str(count) + " go to guess my name.")
  8. else:
  9. print("well done, it took you " + str(count) + " goes to guess my name.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement