Python, Data Science, Data Engineering, Programming, Coding.
lst2: print(item) Output: 1 [1, 2] 1 2 3 4 5 Tuple We can think of a tuple as an immutable list. Tuples can also store multiple data types, but once we create a tuple, we cannot change its values. Also tuples support many of the operations that lists do, such as indexing, slicing, and len(). Tuples