Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- guess = input ("guess my name > ")
- atmpt = 1
- while guess != "martin":
- guess = input ("wrong - guess again! > ")
- atmpt = (atmpt + 1)
- print ("Attempt number > " + str(atmpt))
- print ("well done")
- print ("that took " + str(atmpt) + " attempts")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement