Advertisement
GreatRaymondo

gmn

May 15th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. guess = input("guess my name ")
  2. count = 0
  3. while guess != "John":
  4. guess = input("wrong - guess again ")
  5. count +=1
  6. print("well done")
  7. print("You guessed " + str(count) + " times")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement