2. List, Set, Tuple
·
Python
Lists¶ Lists group together data -- the data can be a mix of integers, floating point or complex numbers, strings, or other objects (including other lists). In [2]: a = [1, 2.0, "my list", 4] In [3]: print(a) [1, 2.0, 'my list', 4] In [4]: type(a) Out[4]: list In [5]: print(a[2]) # remember, 0-based indexing my list In [6]: b = ['another string'] a + b Out[6]: [1, 2.0, 'my list', 4, 'another str..