L1 · Required

Variables, conditions and loops

Use variables, conditions and loops to make decisions inspectable.

What you should be able to do

Independently: Write a small numeric summary program that handles empty input.

Suggested prerequisites

A short guide

Use variables, conditions and loops to make decisions inspectable. Write a small numeric summary program that handles empty input. Read the indicated source section, identify its key concepts and conditions, and work through the example. Record inputs, sources, units and assumptions. Keep your method separate from the result, mark unanswered questions, and review the output against the checklist.

An example

An empty list cannot be averaged by dividing by its length.

Your task

Write a small numeric summary program that handles empty input.

Start with this source

Read the indicated section relevant to variables, conditions and loops and complete the foundation task.

This source is awaiting renewed review. Try the task above and adjacent skills; reviewed sources will appear here.

Your learning checklist

Required items: 0 / 10 completed or already known

Device storage

Next: Read a role through its responsibilities

Checklist statuses are self-reported; exercise scores are recorded separately. You can reset any item.

Self-check