Please use the Jupyter notebook named "04StoringMultipleValuesInLists.ipynb" for this lesson. If you haven't downloaded them already, you may find them here.
Key Points
Use [value1, value2, value3, ...] creates a list.
Lists can contain any Python object, including lists (i.e., list of lists).
Lists are indexed and sliced with square brackets (e.g., list[0] and list[2:9]), in the same way as strings and arrays.
Lists are mutable (i.e., their values can be changed in place).
Strings are immutable (i.e., the characters in them cannot be changed).
You are being redirected to our marketplace website to provide you an optimal buying experience. Please refer to our FAQ page for more details. Click the button below to proceed further.