+ 1
Python How to write a function with f and n as arguments, If n=1 outputs f(x),If n=2 outputs f(f(x)), If n=3 outputs f(f(f(x)))?
I guess It requires nested function or lambda
4 ответов
+ 2
Please try not to make duplicate question.
https://www.sololearn.com/Discuss/2033688/?ref=app
+ 1
Looks like a standard recursion program to me. What does f(x) do?
+ 1
+ 1
Next time you should show your own attempt