Skip to main content

Practice ยท 3 of 3

Three-Step Pipeline

Build process_order(price): apply 10% discount if price >= 100, then add 5 shipping, and return the final total. Then print process_order(150) and process_order(50) โ€” two lines with :.2f formatting.

Difficulty: beginner

Back to lesson: Practice: Refactoring Drills