shipping_quote(weight_kg, *, express=False, insured=False) that computes a shipping cost. Base cost is weight_kg * 50. If express is True, add a flat 100. If insured is True, add 20. express and insured must be passed by keyword only (the * enforces this) and both default to False.shipping_quote(2)
100
Base cost only: 2 * 50 = 100.
shipping_quote(2, express=True, insured=True)
220
100 base + 100 express + 20 insured = 220.
A bare * in the signature forces everything after it to be keyword-only.
Add each surcharge conditionally.