Question: You should not be using a Python IDE to write this code. Write your answer in the provided answer box.Write a Python code segment for
You should not be using a Python IDE to write this code. Write your answer in the provided answer box.Write a Python code segment for a program for the following problem. Make sure to follow the exact given specifications of the function Define a function named pizzathat accepts the number of pizzas ordered as its parameter The function will ask for the cost of each pizza and calculates and returns the total cost Define a main function to ask the user for the number of pizzas and call the function pizza to find the total cost Inside the main function, if the total cost is more than $ calculate and display a discounted cost by giving a discount Call the main function.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
