All Subjects
Light
range() is a built-in Python function used to generate a sequence of numbers. It is commonly used in for loops to iterate over a series of values.
congrats on reading the definition of range(). now let's actually learn it.
for loop: A control flow statement that repeatedly executes a block of code for each item in a sequence or iterable.
iterable: An object capable of returning its members one at a time. Examples include lists, tuples, and strings.
sequence: An ordered collection of items indexed by integers. Common sequences include strings, lists, and tuples.