Question: can someone help me code this in python you buy a hamburger the toppings pickles bacon and cheese ( how many slices do you want

can someone help me code this in python
you buy a hamburger the toppings
pickles bacon and cheese (how many slices do you want 1-4)
get cost of hamburger if the base price is 5 dollars and 2 dollars for each extra slice of cheese added (1=2 dollars, 2slices=4dollars) thanks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!