johnrtate

101 week 4

Dec 24th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. guess = input("guess my name ? ")
  2. how_many = 1
  3.  
  4. while guess != "Martin":
  5.     guess = input("Wrong - guess again ")
  6.     how_many +=1
  7.  
  8. print("Well done you guessed in " + str(how_many))
Advertisement
Add Comment
Please, Sign In to add comment