the predefined functions of Tuple variables in python code example
Example: py tuple
# Different types of tuples
# Empty tuple
my_tuple = ()
print(my_tuple) # ()
# Tuple having integers
my_tuple = (1, 2, 3)
print(my_tuple) # (1, 2, 3)
# tuple with mixed datatypes
my_tuple = (1, "Hello", 3.4)
print(my_tuple) # (1, 'Hello', 3.4)
# nested tuple
my_tuple = ("mouse", [8, 4, 6], (1, 2, 3))
print(my_tuple) # ('mouse', [8, 4, 6], (1, 2, 3))