Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Returning a Multiplier Function | Variable Scope, Nested Functions, and Closures
Functional Programming Concepts in Python
Sección 3. Capítulo 6
single

single

Challenge: Returning a Multiplier Function

Desliza para mostrar el menú

Tarea

Desliza para comenzar a programar

Write a function that returns another function which multiplies its argument by a fixed number.

  • Call the nested function multiplier.
  • The returned function must multiply its input by the value of n.
  • The outer function must return the inner function.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 3. Capítulo 6
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

some-alt