How to Use Python Lambda With the Sort Method

Publicado el: 22 agosto 2019
en el canal de: Real Python
25,726
597

You’ll see how to use a lambda for the key of the sort() method of lists. sort() has two parameters. key is None by default. reverse is False by default.

You won’t be altering reverse, but you will be looking at key because you can use a lambda expression to alter the behavior of sort(). When you use lambda, you can extend key to be much more versatile.

Click here to learn more: https://realpython.com/courses/python...


En esta página del sitio puede ver el video en línea How to Use Python Lambda With the Sort Method de Duración hora minuto segunda en buena calidad , que subió el usuario Real Python 22 agosto 2019, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 25,726 veces y le gustó 597 a los espectadores. Disfruta viendo!