I want something related to python

0 votes
#  Don't change the code below

print("Welcome to Python Pizza Deliveries!")

size = input("What size pizza do you want? S, M, or L ")

add_pepperoni = input("Do you want pepperoni? Y or N ")

extra_cheese = input("Do you want extra cheese? Y or N ")

#  Don't change the code above

#Write your code below this line

bill = 0

if size == "S":

    bill += 15

if add_pepperoni == "Y":

    bill += 2    

elif size == "M":

    bill += 20

elif size == "L":

    bill += 25

if add_pepperoni == "Y":

    bill += 3

if extra_cheese == "Y":

    bill += 1

    print(f"Your tatal bill is ${bill}.")

# When the choices are L N N or M N N respectively it just shows nothing.? please help me through this.
May 14, 2023 in Python by Krishna

edited Mar 5, 2025 336 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP