You are viewing a single comment's thread. Return to all comments →
simple logic print string value if second hightest match for 1 or more time. consider this sec_hig = 10.5
[str_value for str_value , float_value in marksheet if float_value==sec_hig] # this list compreshension will give only str_value
Seems like cookies are disabled on this browser, please enable them to open this website
Nested Lists
You are viewing a single comment's thread. Return to all comments →
simple logic print string value if second hightest match for 1 or more time. consider this sec_hig = 10.5
[str_value for str_value , float_value in marksheet if float_value==sec_hig] # this list compreshension will give only str_value