Question 8: Operator Pizza Shop Calculator

🍕 Pizza Shop Calculator

Use: import task_operators_08

Tobi visits a pizza shop. He buys 3 slices of pizza for 5 dollars each and a drink for 4 dollars. Write a Python program that calculates the total cost of the pizza and drink, and how much money Tobi has left from his 25 dollars.
  • Store the number of pizza slices in a variable called pizza_slices and set it to 3.
  • Store the price of each slice in a variable called pizza_price and set it to 5.
  • Store the drink price in a variable called drink_price and set it to 4.
  • Store Tobi’s money in a variable called money and set it to 25.
  • Calculate the total pizza cost and store it in pizza_total using pizza_slices * pizza_price.
  • Calculate the total bill and store it in total_bill using pizza_total + drink_price.
  • Calculate the money left and store it in money_left using money - total_bill.
  • Print exactly three lines in this format:
    Pizza cost: <pizza_total>
    Total bill: <total_bill>
    Money left: <money_left>
    Use a separate print() call for each line.
Write what you are looking for, and press enter to begin your search!