CBSE · 083Class XII · 2023Section B1 mark
Question 21(2)
30 March 2023 · Computer Science (083)
Consider the following tuple declaration : tupl=(10,20,30,(10,20,30),40) Write the output of : print(tupl.index(20))
Answer
1
Explanation
The index() method returns the index of the first occurrence of the value 20, which is at index 1.