Advertisement
lubattillah

while loop

May 16th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. guess = input("guess my name: ")
  2. count = 0
  3. while guess != "Martin":
  4. guess = input("wrong-guess again:")
  5. count+=1
  6. print("well done!, but it takes you", count, "times to guess the right name")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement