Use index 2 column and sort it out in descending order I wrote [:3] because I wanted only the top 3 to come up It will be printed in a line.
If you know how to do it, please leave a comment.
mylist.sort(key=lambda x:x[2], reverse=True) print( mylist [:3] )
You can print one by one.
for e in mylist[:3]: print(e)
There are also the following methods.
print(*mylist[:3], sep='\n')
539 Understanding How to Configure Google API Key
516 The method of the class of the application that I am creating in Typescript does not work as I expected.
539 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
969 In Java servlet, when SHA-256 sends WW-Authenticate header for digest authentication, the client does not return the result.
640 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.