Calculate Pizza Price

Problem

Implement calculate_pizza_price(size, toppings, premium_crust) to calculate the price of one pizza.

Pricing rules

  • small: $5.
  • medium: $10.
  • large: $15.
  • Each element in th...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: