Skip to content
Permalink
e6c5ba2328
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
102 lines (88 sloc) 4.34 KB
def jokemenu(selection):
import random
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. Cross The Road Jokes")
print ("3. Yo Mama Jokes")
print ("4. Surprise Me!")
print ("0. I don't wanna hear your dead jokes, take me back to the main menu!")
print (30 * '-')
selection = int(input("Please Pick 1-4"))
if selection == 0:
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")
return 0
#At the present moment my team is developing their ideas seperately. I will make this return to the
#Main greeting function when this if statement becomes true!
if selection == 1:
confirmation = input(str("You have selected Knock Knock Jokes, is this correct?"))
ignorecase1 = confirmation.lower()
if ignorecase1 == "yes":
print("Pass!!")
return 0
else:
jokemenu(0)
if selection == 2:
confirmation = input(str("You have selected Cross Road Jokes, is this correct?"))
ignorecase1 = confirmation.lower()
if ignorecase1 == "yes":
print("Pass!!")
return 0
else:
jokemenu(0)
if selection == 3:
confirmation = input(str("You have selected Yo Mama, this ain't for the faint hearted, Ya Sure?!?"))
ignorecase1 = confirmation.lower()
if ignorecase1 == "yes":
print("Pass!!")
return 0
else:
jokemenu(0)
if selection == 4:
confirmation = input(str("Random Huh?"))
ignorecase1 = confirmation.lower()
if ignorecase1 == "yes":
print("My Guyyyyy, prepare to have your mind blown!")
else:
jokemenu(0)
return 0
else:
print("Invalid Selection Buddy, Who you tryna fool??!")
print (30 * '-')
return 0
return 5
jokemenu(0)
#I am still weighing up my options in storing the jokes for each type... I am thinking to assign numbers to strings
#for each joke type in their own functions in a seperate files...
#I am planning to create a random insult program using the same concept