Решение задач Code Wars на Python. First Class Function Factory. 7 kyu

Write a function, factory, that takes a number as its parameter and returns another function. The returned function should take an array of numbers as its parameter, and return an array of those numbers multiplied by the number that was passed into the first function. In the example below, 5 is the number passed into the first function. So it returns a function that takes an array and multiplies all elements in it by five. Разбор задач с Code Wars: Code Wars 8 kyu - Code Wars 7 kyu - Разбор задач по Python (Питон): “Поколение Python“: курс для профессионалов - “Поколение Python“: курс для продвинутых - “Поколение Python“: курс для начинающих - “Программирование на Python“ - Единоразовая поддержка -
Back to Top