Advertisement
Scunnered

Untitled

Aug 21st, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1.  
  2. guess=input("guess my name? ")
  3.  
  4. total=1 #ugly code but it works
  5. while guess != "Vlad":
  6. total=total+1
  7. guess=input("Wrong, guess again, ")
  8.  
  9. print("Attempt nr. " + str(total) )
  10.  
  11. print("Well done")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement