5
Question Question 5
How are individual elements of tuples accessed?
The individual elements of a tuple are accessed through their indexes given in square brackets as shown in the example below:
Example:
tup = ("python", "tuple", "computer")
print(tup[1])Output
tuple