Skip to content

Lab 04: Branching

Goal

Use decisions to produce different outputs for different inputs.

Practice Tasks

  • Read a numeric value.
  • Classify it into one of several categories.
  • Use if, elif, and else.
  • Test the lowest, highest, and boundary values in your categories.

Check Yourself

The program should print one category for one input, not several categories at once.