Python Programming - Tuples - Discussion

Discussion Forum : Tuples - General Questions (Q.No. 21)
21.
What is the correct way to access the second element of a tuple?
tuple[2]
tuple.get(1)
tuple[1]
tuple.element(2)
Answer: Option
Explanation:
In Python, indexing starts from 0, so the second element can be accessed using index 1.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.