+ 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

14th Oct 2019, 11:57 PM
Susan Tandiono
Susan Tandiono - avatar
4 ответов
+ 2
Please try not to make duplicate question. https://www.sololearn.com/Discuss/2033688/?ref=app
15th Oct 2019, 7:46 AM
Ipang
+ 1
Looks like a standard recursion program to me. What does f(x) do?
15th Oct 2019, 6:13 AM
Trigger
Trigger - avatar
15th Oct 2019, 6:17 AM
Trigger
Trigger - avatar
+ 1
Next time you should show your own attempt
15th Oct 2019, 6:18 AM
Trigger
Trigger - avatar