Sección 2. Capítulo 6
single
Challenge: Lambda with Map
Desliza para mostrar el menú
Tarea
Desliza para comenzar a programar
Write a lambda function that returns the cube of its argument and use it with map to process a list.
- The
lambdafunction must return the cube of its argument. - Use
mapto apply the lambda function to each element in thenumberslist. - Store the result as a list in the
cubed_numbersvariable.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 6
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla