Tuples in Python:
It is a type of data structure. It is a container to store different values. Specially values that are immutable.
Example 1:
Coordinates = (3, 6)
Example 2:
Users = (“hello1”, “simple”, 10, “john”, 50.45)
Example 3 ('List' of 'Tuples'):
Multi_coordinates = [(2, 3), (5, 7), (4,9)]
What is the difference between 'Tuples' vs 'List'
Tuple is like a List in storing the data, but the key difference between Python List and Python Tuples – List is mutable, and Tuple is NOT mutable.