Series overview

Python Bakery

Lists and indexes

This lesson opens the sequences chapter and introduces indexing a list directly, using len, range and enumerate to generate and pair up indexes instead of iterating over values. Students update elements through their index and swap elements with multiple assignment.