──────────────────────────────────────

8. The Club Pass Desk · Build a Club Pass Adviser

Choose one tier from three and verify both cutoffs.

Lesson files · lessons/input-and-decisions/club-pass-adviser

Before you start
- Use if and else to choose a message.
- Use >= to include the cutoff in a comparison.

By the end
- Use if, elif and else to select one tier.
- Trace which conditions get checked at each cutoff.
- Explain why the highest cutoff comes first.

Where you can use it
Assign bronze, silver or gold badges for a reading challenge. Check the highest goal first so each reader gets the right badge.

Python checks the conditions in an if/elif/else chain from top to bottom. It runs the first branch whose condition is True. The else block runs if all the conditions are False.

A score of 10 passes both the Gold and Silver cutoffs. Check the highest cutoff first so the Gold branch gets the score. Trace which comparisons happen for 4, 5 and 10 before you try the code.

Predict
What happens if you check >= 5 first for a score of 10?
- Python automatically picks the highest tier.
- The Silver branch runs first.

Worked example (example.py)

points = int(input())
if points >= 5:
    print("Silver or higher")
else:
    print("Bronze")


Example input
5

Example result
Silver or higher

Read a non-negative whole number of points. Print Bronze for 0–4, Silver for 5–9, and Gold for 10 and above. Print only the tier name.

Starter program (starter.py)

points = int(input())
if points >= 5:
    print("Silver or higher")
else:
    print("Bronze")


Starter input
5

Hint
Start with if points >= 10. Try elif points >= 5 next and put Bronze in else.

Case 1. Try the sample
Input
5
Expected output
Silver

Case 2. Bronze boundary
Input
4
Expected output
Bronze

Case 3. Gold boundary
Input
10
Expected output
Gold

Project checklist
Run the sample case.

Project checklist
Try one different case and explain what happened.

Marking criterion
Program behaviour (4 points)
Each required behaviour works on the supplied cases.

Marking criterion
Use of the lesson concept (3 points)
The code uses the main idea in a clear, purposeful way.

Marking criterion
Test evidence (2 points)
The reflection describes a case, its expected result and what happened.

Marking criterion
Explanation (1 points)
The learner explains a change or design decision in their own words.

Stretch
Invent a Platinum threshold and add two tests on either side of it.

Reflect
Why does a Gold score also pass the Silver comparison?

Check your prediction
The Silver branch runs first. An if/elif/else chain runs its first matching branch.
