StayTalentReady

Exercises — Outcome 4: Selection Structures

1 hands-on tasks. Do them in order; each one feeds the Canvas item it names.

30 min · hands-on

1. Grade Classifier

  1. Ask the user to input a numeric score (0–100).
  2. Use if/elif/else to print a letter grade: A (90–100), B (80–89), C (70–79), D (60–69), F (below 60).
  3. Add a check for invalid input (score < 0 or > 100) and print an error message.
Turn in / bring: Python script and test outputs for five different scores submitted to Canvas.
← Outcome 3Outcome 5 →

↑ Back to top