Advertisements
Advertisements
प्रश्न
Consider the following tuple declaration:
tup1 = ( 10, 20, 30, (10, 20, 30), 40)
Write the output of:
print(tupl.index(20))लघु उत्तरीय
Advertisements
उत्तर
Output: 1
Explanation:
tupl.index(20) returns the index of the tuple's first occurrence of 20.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
