Question: Write a program in Python that compares two pizza offers and identifies the one with the better value, i.e., lower cost per square inch of
Write a program in Python that compares two pizza offers and identifies the one with the better value, i.e., lower cost per square inch of pizza. The user should be able to input the size (i.e., diameter in inches) and cost of each pizza. Note that the area of a circle is 3.14 times the square of its radius (which is half of the diameter.) Avoid writing repetitive code for the computation.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
