Day 3 Solution Files
Day 3 Solution Files
py
print("Welcome to the rollercoaster!")
else:
bill = 0
bill = 5
bill = 7
# Or
else:
bill = 12
if wants_photo == "Y":
bill += 3
if number_to_check % 2 == 0:
print("Even")
else:
print("Odd")
Folder: Multiple Ifs - File: solution.py
print("Welcome to the rollercoaster!")
bill = 0
bill = 5
bill = 7
else:
bill = 12
if wants_photo == "Y":
bill += 3
else:
else:
else:
# todo: work out how much they need to pay based on their size choice.
bill = 0
if size == "S":
bill += 15
bill += 20
bill += 25
else:
# todo: work out how much to add to their bill based on their pepperoni choice.
if pepperoni == "Y":
if size == "S":
bill += 2
else:
bill += 3
# todo: work out their final amount based on whether if they want extra cheese.
if extra_cheese == "Y":
bill += 1
*******************************************************************************
| | | |
_________|________________.=""_;=.______________|_____________________|_______
| | ,-"_,="" `"=.| |
|___________________|__"=._o`"-._ `"=.______________|___________________
| `"=._o`"=._ _`"=._ |
_________|_____________________:=._o "=._."_.-="'"=.__________________|_______
/______/______/______/_"=._o--._ ; | ; ; ;/______/______/______/_
/______/______/______/______/____"=._o._; | ;_.--"o.--"_/______/______/______/_
____/______/______/______/______/_____"=.o|o_.--""___/______/______/______/____
/______/______/______/______/______/______/______/______/______/______/_____ /
*******************************************************************************
''')
if choice2 == "wait":
if choice3 == "red":
else:
else:
else: