LearnPy Hub
← Decorators problems
Easy

Return a Function

Write make_adder(k) that returns a function adding k to its argument. Read k and x and print make_adder(k)(x).

Input

Two integers.

Output

One integer.

Sample 1

Input
5
10
Output
15

Sample 2

Input
0
7
Output
7
solution.py
Output appears here
Return a Function · Python practice problem · LearnPy Hub