How this is working ? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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 Respuestas