Video 6: Lists Tuples Dictionaries (page 1 of 14) |
Lists allow us to store multiple items in a single object (i.e., multiple items in a single variable). I like to conceptualize a list as a "bag" where we can put multiple things in the bag.
Lists are one of the four built-in data types to store collections along with tuples, dictionaries, and sets (not covered in this class). Each collection type has different pros and cons.
Lists are created using square brackets during assignment [].