promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_promptdojo_

Decisions — if/elif chains — step 7 of 8

Checkpoint

One last thing before we move on. pass this to mark the lesson done, or skip and keep moving. hop to the next when you're ready.

One last thing. AI wrote a discount-rule script. The starter has the right branches but the conditions are missing. Finish lines 4 and 6 so the script prints vip discount.

Catch: points = 0 is a valid score (user has a record, just zero). The truthy check if points: falls through to the wrong branch. Use is not None so a real zero still counts.

full-screen editor opens — close anytime to keep reading.