Quiz on Accessing Tuple Items in Python



1. What is the method to access an item in a tuple?
2. Which of the following will return the first item of a tuple named 'my_tuple'?
3. Can you access items in a tuple using negative indexing?
4. What will be the output of 'my_tuple[-1]' if 'my_tuple = (10, 20, 30)'?
5. What error will occur if you try to access an index that is out of range in a tuple?

Advertisements