Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
from random import randint
from knock import knock
from ChuckManual import chuckmanual
from yomama import yomama
def jokemenu(selection):
print (30 * '-')
print("W E L C O M E ")
print(" ")
print("T O")
print(" ")
print ("H A S S A N ' S J O K E M A C H I N E")
print (30 * '-')
print("Please choose which type of joke you would like to hear!")
print ("1. Knock Knock Jokes")
print ("2. Chuck Norris Jokes")
print ("3. Yo Mama Jokes")
print ("4. Surprise Me!")
print ("If you don't want to hear any amazing jokes, type back or quit..")
print (30 * '-')
print("Please enter the type of joke you'd like to hear!")
choice=input("Me: ")
if choice in "Knock knock Kno kno 1":
print("You Have Chosen Knock Knock Jokes, Is this correct??")
choice = input("Me: ")
if choice in "yes Yes Ye ye Yeah yeah Yep yep ":
knock(0)
else:
jokemenu(0)
elif choice in "Chuck chuck Norris norris 2":
print("You Have Chosen Chuck Norris Jokes, Is this correct??")
choice = input("Me: ")
if choice in "yes Yes Ye ye Yeah yeah Yep yep":
print("Loading")
print(".."*5)
chuckmanual(0)
else:
jokemenu(0)
elif choice in "Yo yo Mama mama Ma ma 3":
print("You Have Yo Mama Jokes, Is this correct??")
choice = input("Me: ")
if choice in "yes Yes Ye ye Yeah yeah Yep yep":
print("Take some tissue for your tears!")
print("Loading")
print(".."*5)
yomama(0)
else:
jokemenu(0)
elif choice in "Surprise surprise Me me 4":
print("Get Ready To Be Amazed!!")
ranchoice = (randint (1,5))
if ranchoice == 1:
print ("Hooray You Get A Knock Joke")
knock(0)
elif ranchoice == 2:
print ("Chuck Norris Jokes Huh?!?... What a BadASS!!")
chuckmanual(0)
elif ranchoice == 3:
print ("Unlucky Pal, Yo Mama Jokes It Is")
yomama(0)
else:
print("The Magic Joke Machine Doesn't Wish To Choose For You... Make A Selection!!")
jokemenu(0)
elif choice in "Quit quit stop Stop Back back Exit exit No no":
print ("_____________________________________¶¶___________")
print ("________________________________¶1¶1111111¶_______")
print ("________¶¶111¶_______________¶¶¶¶111111111¶¶¶1____")
print ("_____¶1¶¶¶¶¶111111¶_________¶¶¶1¶¶¶11111111¶1¶¶___")
print ("___¶¶¶1¶1111111111¶¶1______¶¶1¶¶¶1111111111111¶¶__")
print ("__¶¶1¶¶1111111111111¶¶_____¶¶¶1¶¶¶¶1111111111111¶_")
print ("__¶¶_¶1111111111111111¶¶___¶¶¶¶¶¶11¶111111111111¶_")
print ("_11_¶11111111111111111¶¶_____¶¶¶¶__¶111111111111¶¶")
print ("¶¶¶¶1111111111111111¶¶¶¶_____1¶¶__11111111111111¶¶")
print ("¶¶¶¶11111111111¶¶¶¶¶¶¶______1¶1¶¶1111111111111111¶")
print ("¶¶1¶1111111111111¶¶¶¶¶¶_____¶¶¶¶¶¶11111111111111¶¶")
print ("¶¶11111111111111111111111¶¶___¶¶¶¶¶¶1111111111¶¶¶_")
print ("_1¶111111111111111111¶¶¶¶¶¶____¶¶¶¶11111111111¶1__")
print ("__¶¶11111111111111111¶¶¶_____¶¶¶1111111111111¶1___")
print ("___¶¶¶111111111111¶1¶¶¶____1¶¶111¶1111111¶11¶1____")
print ("____1¶¶¶11111111111¶¶¶¶111¶¶¶¶111111111¶11¶¶¶_____")
print ("______¶¶¶¶1111111111111¶¶¶¶1¶¶¶¶¶¶¶¶11¶11¶¶_______")
print ("_______¶¶¶¶¶11111111111¶111¶___¶¶¶111¶1¶¶¶________")
print ("_________¶¶¶¶¶¶111111111111¶__¶¶¶111¶¶¶1__________")
print ("____________1¶¶¶¶¶11111111¶¶_¶¶¶¶111¶¶____________")
print ("______________¶¶¶¶¶¶¶1111111_¶¶¶11¶¶1_____________")
print ("_________________1¶¶¶¶¶¶1111¶¶¶1¶¶¶¶______________")
print ("____________________¶¶¶¶¶¶1¶¶¶¶¶1¶________________")
print ("_______________________¶1¶¶¶1¶¶¶__________________")
print ("___________________________11¶____________________")
print("I Am Deeply Dissapointed.... But as you wish")
elif choice not in "Quit quit Knock knock Random random Mama mama Yo yo Cross cross Road road ":
while choice not in "Quit quit Knock knock Random random Mama mama Yo yo Cross cross Road road ":
text = "INVALID SELECTION"
text = text.center(20,"-")
print (text)
print (text)
print (text)
print (text)
print (text)
jokemenu(0)
return 0
elif choice not in "Quit quit Knock knock Joke 1 2 3 4 0 cross Mama mama":
while choice not in "Quit quit Knock knock Joke 1 2 3 4 0 cross Mama mama":
print("Who you tryna fool, fool!")
print("TRY AGAIN")
jokemenu(0)
return 0
jokemenu(0)