Source Code:
(back to article)
my_tuple = (1, 2, 3, 2) print(my_tuple.index(2)) # Output 1
Result:
Report an issue