I appreciate all your help. My uncle helped me figure it out. I don't know if it's the best way to do it, but it worked and that's all I needed.
import time
name = raw_input("Hi, what is your name?")
print "hi, " + name + ", nice to meet you."
a1 = raw_input("Would you like to hear a knock knock joke?").lower()
if a1 == "no":
print "OK, thanks anyways"
elif a1 == "yes":
raw_input ("Knock Knock")
print "interrupting cow"
time.sleep(2)
print "MOOOOOO!!!!"
EDIT: Sorry I am using Windows 8 and Python 2.7.
I need help with a homework assignment. I can complete the assignment fine, but I would like know how to do it a different way. So basically I have to write a knock knock joke in python. I want to do the "interrupting cow" joke but I don't know how to get the code to interrupt while typing. Here's what I have.
name = raw_input("Hi, what is your name?")
print "hi, " + name + ", nice to meet you."
a1 = raw_input("Would you like to hear a knock knock joke?").lower()
if a1 == "no":
print "OK, thanks anyways"
elif a1 == "yes":
raw_input ("Knock Knock")
raw_input ("interrupting cow")
So I have it all the way up to where I would respond 'interrupting cow who' and it would interrupt with 'MOO!!!' in the middle of me typing. I've seen something about an end' ' code but it didn't really work, or maybe I didn't use it write. Can anyone help me out?