1# A tuple is a sequence of immutable Python objects. Tuples are
2# sequences, just like lists. The differences between tuples
3# and lists are, the tuples cannot be changed unlike lists and
4# tuples use parentheses, whereas lists use square brackets.
5tup1 = ('physics', 'chemistry', 1997, 2000);
6tup2 = "a", "b", "c", "d";
7
8# To access values in tuple, use the square brackets for
9# slicing along with the index or indices to obtain value
10# available at that index.
11tup1[0] # Output: 'physics'
1#A tuple is essentailly a list with limited uses. They are popular when making variables
2#or containers that you don't want changed, or when making temporary variables.
3#A tuple is defined with parentheses.
1# tuple repitition works like this
2print(('Hi!',) * 4) # output: ('Hi!', 'Hi!', 'Hi!', 'Hi!')