I tried using the lambda function with sorted as per the video.
b =[(“a”,5),(“x”,10),(“jatin”,6)]
sorted(b,key = lambda x: x[1])
Here is my code. It is showing error that " TypeError: () got an unexpected keyword argument ‘key’".
What is wrong could you please explain?
Lambda function
Hey @jhunthrasrishti, please upload your code on google drive and share the link with me here. I’ll look at the .ipynb file and then debug the error.
Thanks !