Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
3.9 kB
6
Indexable
Never
import random
cow1 = "BORiNG!"
cow2 = "NOPE!"
cow3 = "BRUH NOT AGAIN!"
cow4 = "._. really...."
cow5 = "NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!"
items = 0
import math
keep_going = "Y"
purchase="Y"
while keep_going == "Y":
    select_program = int(input("Which program do you want to run? 1. Calculator 2. Shopping 3. Chat\n"))
    if(select_program == 1):
        print("Please enter two numbers.")
        num1 =float(input("Number one: "))
        num2 =float(input("Number two: "))
        print()
        print("Please enter  either Addition, Subtraction, Multiplication, or Division.")
        operation = (input("Operation: "))
        if(operation == "Addition"):
            sum = [float(num1) + float(num2)]
        if(operation == "Subtraction"):
            sum = [float(num1) - float(num2)]
        if(operation == "Multiplication"):
            sum = [float(num1) * float(num2)]
        if(operation == "Division"):
            sum = [float(num1) / float(num2)]
        print("The answer is " + str(sum))
    if(select_program == 2):
        items = 0
        purchase == "Y"
        while purchase == "Y":
            purchase1= input(("What would you like to buy: "))
            purchaseamount = int(input("How much would you like to buy: "))
            print("You have bought " + str(purchaseamount) +" " + purchase1)
            items += purchaseamount
            print("you have " + str(items) + " items")
            if(items >= 25):
                print("limit reached")
                continue
            purchase=input(("Would you like to purchase anything else? Y,N: "))
    if(select_program == 3):
        talkchoice= input(("What would you like to talk about?: "))
        if(talkchoice == "food"):
            food1= input(("Do you like Breakfast 1. Lunch 2. Dinner 3."))
            if(food1 == "1"):
                print("Did you know that breakfast is the most important meal?")
            elif(food1 == "2"):
                print("SAME! I love lunch!")
            elif(food1 == "3"):
                print("Ohhh dinner is my favorite mhmmmmmmmmmmmmmmmm")
            if(food1 == "go back"):
                continue
        if(talkchoice == "cars"):
            cars1= input(("Do you like Honda's 1. toyota's 2. lamborghini's 3."))
            if(cars1 == "1"):
                print("YOOOOOOOOOOOOOOOO")
            elif(cars1 == "2"):
                print("YOOOOOOOOOO I HAVE ONE!")
            elif(cars1 == "3"):
                print("DONT WE ALLLLLLLLL")
            if(cars1 == "go back"):
                continue
        if(talkchoice == "sports"):
            sport1= input(("Do you like basketball 1. soccer 2. swimming 3."))
            if(sport1 == "1"):
                print("YOOOOOOOOOOOOOOOO SAMEEEEEEEEEEEe")
            elif(sport1 == "2"):
                print("meh")
            elif(sport1 == "3"):
                print("meh I guess")
            if(sport1 == "go back"):
                continue
        if(talkchoice == "music"):
            music1= input(("Do you like rock 1. country 2. rap 3."))
            if(music1 == "1"):
                print("ew")
            elif(music1 == "2"):
                print("meh")
            elif(music1 == "3"):
                print("eh?")
            if(music1 == "go back"):
                continue
        if(talkchoice == "travel"):
            travel1= input(("Do you like New York 1. Alaska 2. Utah 3."))
            if(travel1 == "1"):
                print("never been their, but that place looks cool")
            elif(travel1 == "2"):
                print("I WANNA GOO")
            elif(travel1 == "3"):
                print("YEAAAAaaa lots of stuff to do their like look at rocks, and more rocks...")
            elif (travel1 == "go back"):
                continue
            if(talkchoice == "go back"):
                select_program
        else:
            print(random.choice([cow1, cow2, cow3, cow4, cow5]))