This can be done using the input function in Python. For example, we can use the following code to get the weight and price of the first package:
\[
\text{{weight1 = float(input("Enter weight for package 1: "))}}
\]
\[
\text{{price1 = float(input("Enter price for
Show more…