Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- counter=0
- guess = input("Guess my name > ")
- while guess != "Martin":
- counter=counter+1
- guess = input ("Wrong Guess, try again > ")
- print("Well Done !")
- counter=counter+1
- counter=str(counter)
- print("It took you "+counter+" trie(s) to guess the correct name.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement