Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Main():
- Weight = float(input ("How much does your package weigh? :"))
- CalcShipping(Weight)
- def CalcShipping(Weight):
- if Weight>=2:
- PricePerPound=1.10
- elif Weight>=2 & Weight<6:
- PricePerPound=2.20
- elif Weight>=6 & Weight<10:
- PricePerPound=float(3.70)
- else:
- PricePerPound=3.8
- print ("The total shipping cost will be $%.2f") % (PricePerPound)
- Main()
- print ("The total shipping cost will be $%.2f" % PricePerPound)
- elif Weight >= 2 and Weight < 6:
- PricePerPound = 2.20
- elif Weight >= 6 and Weight < 10:
- PricePerPound = 3.70
- elif 2 <= Weight < 6:
- PricePerPound = 2.20
- elif 6 <= Weight < 10:
- PricePerPound = 3.70
- PricePerPound = 1.10
- if 2 <= Weight < 6:
- PricePerPound = 2.20
- elif 6 <= Weight < 10:
- PricePerPound = 3.70
- elif Weight >= 10:
- PricePerPound = 3.8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement