We've moved away from repl.it for coding exercises. Check out the new exercises on Coding Rooms with automated submissions.
Login to your Udemy course and head over to the link below to get the sign up link:
Congratulations, you've got a job at Python Pizza. Your first job is to build an automatic pizza order program.
Based on a user's order, work out their final bill.
Small Pizza: $15
Medium Pizza: $20
Large Pizza: $25
Pepperoni for Small Pizza: +$2
Pepperoni for Medium or Large Pizza: +$3
Extra cheese for any size pizza: + $1
size = "L"
add_pepperoni = "Y"
extra_cheese = "N"
Your final bill is: $28.
e.g. When you hit run, this is what should happen:
- Think about what you've learnt about multiple if statements and see if you can reduce the number of lines of code while having the same functionality.
Before checking the solution, try copy-pasting your code into this repl:
https://repl.it/@appbrewery/day-3-4-test-your-code
This repl includes my testing code that will check if your code meets this assignment's objectives.