Menu

(Solved) : Write Python Program Compare Unit Per Lb Cost Sugar Sold Packages Different Weights Prices Q44012558 . . .

write a Python program that can compare the unit (per lb) costof sugar sold in packages with different weights and prices. Theprogram prompts the user to enter the weight and price of package1, then does the same for package 2, and displays the results toindicate sugar in which package has a better price. Note: It isassumed that the weight of all packages is measured in lb. Theprogram should check to be sure that both the inputs of weight andprice are both positive values.

Expert Answer


Answer to write a Python program that can compare the unit (per lb) cost of sugar sold in packages with different weights and pric…

OR