Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

max index tuple

max_tuple = max(temp_tuple, key=lambda x:x[1])
max_tuple_index = temp_tuple.index(max_tuple)
print(max_tuple)
print(max_tuple_index)

>> ('B', 3)
>> 1
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #max #index #tuple
ADD COMMENT
Topic
Name
9+8 =