get element inside a tuple in python code example
Example 1: what are tuples in python
#A tuple is essentailly a list with limited uses. They are popular when making variables
#or containers that you don't want changed, or when making temporary variables.
#A tuple is defined with parentheses.
Example 2: make a tuple of any object in python
# tuple repitition works like this
print(('Hi!',) * 4) # output: ('Hi!', 'Hi!', 'Hi!', 'Hi!')