The range() function creates a sequence of numbers. It's one of Python's most useful built-in functions, especially for loops (which we'll cover later). range(5) gives you: , , , , . Notice it starts at and stops before .
This "start at zero, stop before end" pattern is common in programming. To see the numbers, wrap range in list(): print(list(range(5))) shows [0, 1, 2, 3, 4]. We'll use range with loops later, but for now, understand it generates number sequences.