# Declaring tuple
tup = (2, 4, 6, 8)
# Displaying value
print(tup)

# Displaying Single value
print(tup[2])

# Updating by assigning new value
# tup[2] = 22
# Displaying Single value
# print(tup[2])
# Traceback (most recent call last):
#   File "C:/Users/DattatrayaTembare/PycharmProjects/python-examples/src/python_basics/tuple_examples.py", line 10, in <module>
#     tup[2] = 22
# TypeError: 'tuple' object does not support item assignment