bobhig

knockknock.py

May 7th, 2021
886
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. answer1 = ""
  2. answer2 = ""
  3.  
  4. while answer1 != "Who's there?":
  5.   answer1 = input("Knock, knock ")
  6.  
  7. while answer2 != "Mikey who?":
  8.   answer2 = input("Mikey ")
  9.  
  10. print ("Mikey doesn't work, let me in?")
Advertisement
Add Comment
Please, Sign In to add comment