Back Navigation Next Navigation Video 6: Lists Tuples Dictionaries (page 5 of 14)

ListsWe may also loop over the items in a list. Doing so allows us to view or perform some work on specific items in the list. Notice the indentation in this loop.

ListsThe most common way to access the items in a list is by the index position. We may specify a single index or a range of indexed positions. When specifying a range, the last number is not included.