Hard
Counter With a Closure
Write
make_counter(start) that returns a function; each call to it adds 1 to a hidden count (use nonlocal) and returns the new value. Read start and n, call the counter n times and print the values on one line.Input
Two integers on one line.
Output
One line.
Sample 1
Input
0 3
Output
1 2 3
Sample 2
Input
10 1
Output
11
Output appears here