Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###knock knock joke
- class Joke:
- i1 = "Knock knock"
- i2 = "Who's there?"
- def __init__(self, door, punch):
- self.d = door
- self.p = punch
- first = "Atch"
- second = "What a tertible cold - can I come in?"
- def tell(first,second):
- joke = Joke(first,second)
- print (joke.i1)
- print (joke.i2)
- print (joke.d)
- print (joke.d + " who?")
- print (joke.p)
- tell(first,second)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement