Advertisement
timber101

Untitled

May 12th, 2019
168
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None
  1. guess = input ("guess my name > ")
  2. atmpt = 1
  3. while guess != "martin":
  4.     guess = input ("wrong - guess again! > ")
  5.     atmpt = (atmpt + 1)
  6.     print ("Attempt number > " + str(atmpt))
  7. print ("well done")
  8. print ("that took " + str(atmpt) + " attempts")
Advertisement
RAW Paste Data Copied
Advertisement