- A tuple is a fixed-length immutable list. It cannot change its size or content.
- A tuple is denoted with parentheses: (1,2,3)
- Elements of a list can be changed via their index or via the list slice notation.
- A list can grow and shrink using append and pop methods or using the slice notation.
- A list is denoted with square brackets: [1, 2, 3]
from __future__ import print_function l = ['abc', 'def', 'qqrq'] t = tuple(l) print(l) # ['abc', 'def', 'qqrq'] print(t) # ('abc', 'def', 'qqrq')