Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shipping.py #111

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions shipping.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Sal's Shipping

weight = 4.8

premium_price = 125

# Ground Shipping
if weight <= 2:
print(f"Total ground shipping cost is £{(weight * 1.50) + 20}")
elif 2 < weight <= 6:
print(f"Total ground shipping cost is £{(weight * 3.00) + 20}")
elif 6 < weight <= 10:
print(f"Total ground shipping cost is £{(weight * 4.00) + 20}")
else:
print(f"Total ground shipping cost is £{(weight * 4.75) + 20}")

print(f"\nGround shipping premium price is £{premium_price}\n")

# Drone Shipping
if weight <= 2:
print(f"Total drone shipping cost is £{weight * 4.50}")
elif 2 < weight <= 6:
print(f"Total drone shipping cost is £{weight * 9.00}")
elif 6 < weight <= 10:
print(f"Total drone shipping cost is £{weight * 12.00}")
else:
print(f"Total drone shipping cost is £{weight * 14.25}")