PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# i need this code to only allow numbers between 1 and 100. Anything smaller than 1 or bigger than 100 must state ""order to large/small".
a = float(100)
b = float (1.0)
price_pkg = 7.99
min_order = 1
max_order = 100
ch_order_weight = input("What amount of beef?:")
weight = float(ch_order_weight)
weight1 = weight*price_pkg
if weight <= a:
print("Total","$",weight1,"for",weight,"kg")
else:
print("Order amount to large/small")
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run