Skip to content

Commit f87f540

Browse files
Create Helloworld file
1 parent 4a92ac8 commit f87f540

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Helloworld

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Shipping Cost Calculator
2+
## Input package weight and shipping rate
3+
weight = float(input("Enter the package weight in kilograms: "))
4+
rate = float(input("Enter the shipping rate per kilogram: "))
5+
## Calculate shipping cost
6+
shipping_cost = weight * rate
7+
## Display the result
8+
print(f"Shipping Cost: {shipping_cost} USD")

0 commit comments

Comments
 (0)