course content

Course Content

Introduction to Python

Iterating Over IndexesIterating Over Indexes

Remember, the range() function requires at least one argument. Since indexation in Python starts from 0, you can use sequence length as the only range() parameter.

Remember that you need to use the len() function to find the length of the sequence object. For instance, we can iterate the list we used several chapters ago, but this time over indexes.

Section 5.

Chapter 8