CBSE Class 11 Computer Science Question 5 of 114

Tuples — Question 5

Back to all questions
5
Question

Question 5

How are individual elements of tuples accessed?

Answer

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