SHARE
TWEET

Untitled

DEP21 May 19th, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print("Let's have some fun!")
  2. count = 0
  3. guess = input("Guess my name (hint female beginning with 'd') ")
  4. while guess != "doris":
  5.     guess = input("Incorrect! - guess again ")
  6.     count = count + 1
  7. print("Well done! You did it after " + str(count) + " guesses!")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top