We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#-----Random----Weight---Generator-------------------------------#
import random random_number = random.randint(1, 100) weight = random_number print("Weight:", weight, "lbs")
if weight <= 2: cost_ground = round(weight * 1.5) + 20 elif weight <= 6: cost_ground = weight * 3.00 + 20 elif weight <= 10: cost_ground = weight * 4.00 + 20 else: cost_ground = round(weight * 4.75) + 20
print("Ground Shipping $", cost_ground)
cost_ground_premium = 125
print("Ground Shipping Premimium $", cost_ground_premium)
if weight <= 2: cost_drone = round(weight * 4.5) elif weight <= 6: cost_drone = weight * 9.00 elif weight <= 10: cost_drone = weight * 12.00 else: cost_drone = round(weight * 14.25)
print("Drone Shipping: $", cost_drone)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
#-----Random----Weight---Generator-------------------------------#
import random
random_number = random.randint(1, 100)
weight = random_number
print("Weight:", weight, "lbs")
Ground Shipping
if weight <= 2:
cost_ground = round(weight * 1.5) + 20
elif weight <= 6:
cost_ground = weight * 3.00 + 20
elif weight <= 10:
cost_ground = weight * 4.00 + 20
else:
cost_ground = round(weight * 4.75) + 20
print("Ground Shipping $", cost_ground)
Ground Shipping Premimum
cost_ground_premium = 125
print("Ground Shipping Premimium $", cost_ground_premium)
Drone Shipping
if weight <= 2:
cost_drone = round(weight * 4.5)
elif weight <= 6:
cost_drone = weight * 9.00
elif weight <= 10:
cost_drone = weight * 12.00
else:
cost_drone = round(weight * 14.25)
print("Drone Shipping: $", cost_drone)
The text was updated successfully, but these errors were encountered: