Compare and contrast tuples and list.
Question :
Compare and contrast tuples and list.
Tuples are very similar to lists, but tuples cannot be changed, i.e., no change in the contents of the tuple is allowed. A tuple can be viewed as a 'constant list'. While lists employ square brackets, tuples are written with standard parentheses or no parentheses.