Roddyn

while test

Jan 13th, 2020
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. guess =input("guess my name - ")
  2. count = 1
  3. while guess!="Rod":
  4. guess = input("Wrong - guess again - ")
  5. count = count +1
  6. print ("well done")
  7. print ("You took " + str(count) +" guesses to get my name write!")
Add Comment
Please, Sign In to add comment