Advertisement
banjothorn

Untitled

Nov 1st, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. count = 1
  2. guess = input("guess my name ")
  3. while guess != "John":
  4. count = count + 1
  5. guess = input("Wrong - guess again ")
  6. if count == 1:
  7. print("Correct first try - Well Done")
  8. elif count > 1:
  9. print("Well done. You are correct in only " + str(count) + " guesses.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement