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

 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.117 r - diameter / 2 area - math.pir**2 cost_per_inch - cost / area cost_per_inch = round (cost_per_inch, 3) return cost_per_inch def pizza_test(): test_cases - ?? for test in test_cases: argl - test[0] arg2 = test [1] expected_result - test [2] print (f"Checking (f. _name_) '(argi), farg2')...", end="") execute the test actual_result - f (argi, arg2) if (actual_result == expected_result): print("correct!") else: print("fail!") return None In the space below provide testing (ie, 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!