Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- guess = input("Please guess my name")
- count = 0
- while guess != "Mark":
- guess = input("Wrong - guess again ")
- count = count + 1
- print("You guessed right")
- print("My name is " + guess)
- print("You achieved this in " + str(count + 1) + " guesses")
- Please guess my nameHal
- Wrong - guess again Hal
- Wrong - guess again Hal
- Wrong - guess again Mark
- You guessed right
- My name is Mark
- You achieved this in 4 guesses
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement