Skip to content

Commit

Permalink
Merge pull request #1 from nikhilbawane/Shipping_Calculation
Browse files Browse the repository at this point in the history
Create Shipping_Cost_Calculator.py
  • Loading branch information
nikhilbawane authored May 18, 2024
2 parents f4592fb + b679f52 commit dc9dd83
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Shipping_Cost_Calculator.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Shipping Cost Calculator

## Input package weight and shipping rate
weight = float(input("Enter the package weight in kilograms: "))
rate = float(input("Enter the shipping rate per kilogram: "))

## Calculate shipping cost
shipping_cost = weight * rate

## Display the result
print(f"Shipping Cost: {shipping_cost} USD")

0 comments on commit dc9dd83

Please sign in to comment.