Advertisement
GCK

GCK/while test

GCK
Sep 13th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. counter=0
  2. guess=input("Enter my name:>")
  3.  
  4. while guess!="gigi":
  5.     #print("")
  6.     guess=input("Wrong-guess Try again-Enter my name:>")
  7.     counter+=1
  8. print("Well-Done")
  9. print("It took you "+ str(counter) +" times to guess the name")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement