Question: Consider the following Python code: import math def pizza_calculator (diameter, cost): (int, num) -> float Calculates and returns the cost per square Inch of pizza

 Consider the following Python code: import math def pizza_calculator (diameter, cost):

Consider the following Python code: import math def pizza_calculator (diameter, cost): (int, num) -> float Calculates and returns the cost per square Inch of pizza for a pizza of given diameter and cost. Examples: >>> pizza_calculator (14, 18) 0.217 I-diameter / 2 area - math.pi. **2 cost_per_inch - cost / area cost_per_inch - round (cost_per_inch, 3) return cost_per_inch det pizza_test(): test_cases - ?? for test in test_cases: argl - test (0) arg2 - test (11 expected result - test (2) print (f"Checking (f._name_) l'(argi, farg2Y)...", end) #execute the test actual_result - Elargi, arg2) if (actual_result -- expected_result): print("correct!") else: print("fail!") return None In the space below provide testing (i.e. fill in the ?? inside pizza_test()) with three cases to be tested. Include two basic tests and one edge case

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!