How this is working ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How this is working ?

a = [3,2,0,1 ] b = [1,0,3,2 ] b.sort(key = lambda x: a[x]) print(b) I couldn't understand how line 3 is working and from where x is getting value

4th May 2020, 2:31 AM
Peter Parker
Peter Parker - avatar
0 Answers