how to use python tuples code example
Example 1: tuples in python
my_tuple = 3, 4.6, "dog"
print(my_tuple)
# tuple unpacking is also possible
a, b, c = my_tuple
print(a) # 3
print(b) # 4.6
print(c) # dog
Example 2: make a tuple of any object in python
# tuple repitition works like this
print(('Hi!',) * 4) # output: ('Hi!', 'Hi!', 'Hi!', 'Hi!')