Read first
Concept
Combine it
Use a function with a loop and an if to solve a real task.
Task
What should every reusable piece of logic be?
None
Control flow and functions
This step has no editor
Read, then continue
This is a concept step: there is nothing to type. Read the left column, then click Mark as read and continue in the right column to unlock the next task.
Every concept task contributes to the quizzes that unlock after every 10 finished tasks.
Concept step · 30 of 56
Your result
This is a concept step
Read the left column, then mark the task read.
Why this works
Anyone can read this task. Create a free account to save progress and unlock the next task.
Track progress
0 of 56 tasks complete
Next task
Next task unlocks when every check passes.
Sign in to keep your code and certificates.
Next task (mark this task read first)
Hint
Wrap logic in functions.