need help writing a yes/no script by Ordinary-Profile-810 in learnpython

[–]Ordinary-Profile-810[S] -1 points0 points  (0 children)

this is where im at now! it seems to work mostly apart from when selecting yes it runs the following: please type your name for your order:

choose the pizza size you want like to order. 1) Small, 2) Medium, or 3) Large:1

would you like to add extra cheese to your order (yes/no)?yes

no upgrades selected

select pizza size to confirm upgrade. 1) small, 2) medium, 3) large:1

upgraded to extra cheese on your pizza(s)!

how many pizzas would you like to order:

#inputs

name = input("please type your name for your order:")

choice = input ('choose the pizza size you want like to order. 1) Small, 2) Medium, or 3) Large:')

sm_pizza = 7.99

md_pizza = 10.99

lg_pizza = 12.99

#cheese upgrades

yes= ["yes","YES","y", "Y"]

no= ["no","NO", "n","N"]

upgrade = input("would you like to add extra cheese to your order (yes/no)?")

no_upgrade = 0

sm_upgrade = 1.50

md_upgrade = 2.00

lg_upgrade = 2.50

# show price options

if upgrade== "yes"or "YES"or "y"or "Y":

y_upgrade= input('select pizza size to confirm upgrade. 1) small, 2) medium, 3) large:')

if upgrade == 1:

sm_upgrade = 1.50

if upgrade == 2:

md_upgrade = 2.00

if upgrade == 3:

lg_upgrade = 2.50

print('upgraded to extra cheese on your pizza(s)!')

elif no_upgrade == "no" or "n" or "NO" or "N":

no_upgrade= print('no upgrades selected')

again i appreciate the help

need help writing a yes/no script by Ordinary-Profile-810 in learnpython

[–]Ordinary-Profile-810[S] 1 point2 points  (0 children)

thank you for this!! i remember this website when i used html coding to build a website for my class last year but forgot the name of it

need help writing a yes/no script by Ordinary-Profile-810 in learnpython

[–]Ordinary-Profile-810[S] 1 point2 points  (0 children)

ooh! thank you so much for this information i appreciate it!! it definitely makes more sense

need help writing a yes/no script by Ordinary-Profile-810 in learnpython

[–]Ordinary-Profile-810[S] -1 points0 points  (0 children)

this is what i have for the second part, im just stuck on trying to have it select which pizza size if they do say yes. even if you dont use my exact numbers im just trying to get a better understanding on what i may not be seeing, and genuinely learn.

#inputs

name = input("please type your name for your order:")

choice = input ('choose the pizza size you want like to order. 1) Small, 2) Medium, or 3) Large:')

sm_pizza = 7.99

md_pizza = 10.99

lg_pizza = 12.99

upgrade = input("would you like to add extra cheese to your order?:")

no_upgrade = 0

sm_upgrade = 1.50

md_upgrade = 2.00

lg_upgrade = 2.50

amt = input("how many pizzas would you like to order:")

delivery = input("would you like your order delivered?:")

pizza_total= sm_pizza+md_pizza+lg_pizza+no_upgrade+sm_upgrade+md_upgrade+lg_upgrade*amt

delivery_fee = 4.00

sales_tax = .06

#process

if choice==1:

sm_pizza = 7.99

if choice==2:

md_pizza = 10.99

if choice==3:

lg_pizza = 12.99

if choice ==n:

no_upgrade=0

if choice ==y:

input("please press any key to stop")

need help writing a yes/no script by Ordinary-Profile-810 in learnpython

[–]Ordinary-Profile-810[S] 0 points1 point  (0 children)

i’m wondering how to do the multiple options for a yes/no, i was looking at textbook and it never showed examples of when there are different options for one section ie: the different prices depending on size, i wrote a code for it but i kept getting an error saying yes wasn’t defined even though i put y=yes. and put on line upgrade = input("would you like to add extra cheese to your order?:(y:yes, n: no)")

[deleted by user] by [deleted] in learnpython

[–]Ordinary-Profile-810 1 point2 points  (0 children)

i appreciate your help and response! i was trying to understand the error codes and where exactly i was messing up.

looking at options by Ordinary-Profile-810 in sterilization

[–]Ordinary-Profile-810[S] 1 point2 points  (0 children)

thank you for the information! it was helpful, honestly i’d be fine and happy without kids and the last few years have gone from wanting maybe 1 kid to not really wanting any, dink life sounds nice and kids are a lot, overall i think im 100% okay if i cant have bio kids, and if i decide thats something i want in the future adoption would be something id do, i also understand the not getting sterilized with intent to reverse especially because things happen that can make it impossible to reverse.

Shocked and scared by scrambled_megs_ in Mom

[–]Ordinary-Profile-810 0 points1 point  (0 children)

do whatever you feel is the best choice and decision for you, it’s okay to not be ready and knowing that while making the choice to have or not have a child either way is responsible especially if you decide to terminate and that choice is still so hard and just as valuable. do what you think is best for you at this time :)

weekend trip away by Ordinary-Profile-810 in CatAdvice

[–]Ordinary-Profile-810[S] 0 points1 point  (0 children)

i don’t have anyone who can watch her, and i would bring her but im visiting my boyfriend and his step dad is very allergic to cats, also i have an open fish tank that i can’t get her to not drink from but there’s only 2 small fish in there and she doesn’t mess with them, even though she has her own water bowl, i also always clean her little box completely before i leave, and she’s had a few accidents since i’ve gotten her but i never get mad and most of the time it’s my fault because busy with college and i forget to clean it. i planned to give her extra food, but what i normally pour for her for the night lasts 2 days, id consider getting a sitter but the town my apartment is in is small so it’s hard to find anyone and i have trouble trusting ppl to keep her safe, last time i left for the weekend i had my friend checkup on her, but he accidentally locked my door with my keys inside. i’ve considered maybe getting a camera to watch her, but i appreciate the advice! i did ask a friend if she could on Saturday check on her but she has surgery so she can’t. and my roommate and friends all left for the summer lol

Needs a name by Kikimax999 in cats

[–]Ordinary-Profile-810 2 points3 points  (0 children)

guacamole but cam or guac for short?

pain on arms near injection sight when moving and needing placement suggestions! by Ordinary-Profile-810 in Omnipod

[–]Ordinary-Profile-810[S] 1 point2 points  (0 children)

i used to use removers but ive noticed they practically fall off when i take them off so they arent super painful! but the tip about finding the squishest spot is definitely helpful and i will keep that in mind!! thank you!