i didnot understand this example
a=[(“jatin”,5),(“ram”,1)]
sorted(a,key=lambda x : x[1])
how the output was generated
i didnot understand this example
a=[(“jatin”,5),(“ram”,1)]
sorted(a,key=lambda x : x[1])
how the output was generated