Sort on the basis of particular column on September 28, 2019 Get link Facebook X Pinterest Email Other Apps li=[(1, 0.23),(78, 0.39),(5, 0.27)] print sorted(li,key=lambda l:l[1], reverse=True) Comments
Comments
Post a Comment