Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Lambda with Map | Higher-Order Functions and Lambdas
Functional Programming Concepts in Python
Seção 2. Capítulo 6
single

single

Challenge: Lambda with Map

Deslize para mostrar o menu

Tarefa

Deslize para começar a programar

Write a lambda function that returns the cube of its argument and use it with map to process a list.

  • The lambda function must return the cube of its argument.
  • Use map to apply the lambda function to each element in the numbers list.
  • Store the result as a list in the cubed_numbers variable.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 6
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

some-alt