⌨️ap computer science principles review

For... in range loop

Written by the Fiveable Content Team • Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examWritten by the Fiveable Content Team • Last updated September 2025

Definition

A for...in range loop is a type of loop that repeats a block of code for a specific number of times. It iterates over a sequence of numbers defined by the range function.

"For... in range loop" also found in: