Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Challenge: Returning a Multiplier Function | Variable Scope, Nested Functions, and Closures
Functional Programming Concepts in Python
Sezione 3. Capitolo 6
single

single

Challenge: Returning a Multiplier Function

Scorri per mostrare il menu

Compito

Scorri per iniziare a programmare

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 3. Capitolo 6
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

some-alt