¶ List, Tuples and Dictionaries
There are 3 types of data structures in Python, lists, tuples and dictionaries.
- Defined with [ ]
- Contains a list of coma separated values
- Lists can be manipulated (mutable)
- names = ['Aaron','Ben','Chris','David']
- Defined with [ ]
- Contains a list of coma separated values
- can not be changed (imutable)
- names = ['Aaron','Ben','Chris','David']
- Defined with
- Contains a list of key:value pairs, separated by a comma
- Can be changed (mutable)
- names=