Practice · 2 of 3
Shipping Calculator
CHALLENGE
Difficulty: beginner+25 XP
weight = 1.0 is given (kg — right on the boundary). Print the cost: 5.0 for up to 1kg inclusive, 9.0 for up to 5kg, 15.0 above — formatted with :.2f.
Press Submit to check your solution.
Back to lesson: Practice: Mini Builds: Validators