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.1. Define a function named pizzathat accepts the number of pizzas ordered as its parameter.2. The function will ask for the cost of each pizza and calculates and returns the total cost.3. Define a main function to ask the user for the number of pizzas and call the function pizza to find the total cost.4. Inside the main function, if the total cost is more than $100, calculate and display a discounted cost by giving a 10% discount.5. Call the main function.

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 Databases Questions!