I have a list in the following format:
[('car crash killed', 95), ('car accident crash', 86), ('disaster police car', 45)]
I want to extract the string/sentence with the largest number and print it in a text file. In this case, the output will be:
car crash killed
If there two or more strings/sentences with the same largest number, I want to extract all of them.For example:
[('car crash killed', 95), ('car accident crash', 95), ('disaster police car', 45)]
Output:
car crash killed
car accident crash
How to extract?