⌨️ap computer science principles review

For...in range loop

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

Definition

A 'for...in range loop' is a type of loop in Python that iterates over a sequence of numbers defined by the 'range' function. It executes a block of code for each value in the specified range.

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

2,589 studying →