explain how it works? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

explain how it works?

def fib(x): if x==0 or x==1: return 1 else: return fib(x-1) + fib(x-2) print(fib(5))

13th Aug 2022, 9:40 AM
Anime Ladd
Anime Ladd - avatar
3 Answers
+ 1
No one can explain to you- like riding your bicycle .... take a sheet of paper and a pencil and go step by step.
13th Aug 2022, 6:40 PM
Oma Falk
Oma Falk - avatar
0
a similar situation is considered in this matter https://www.sololearn.com/Discuss/3072593/?ref=app
13th Aug 2022, 7:53 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar