0

What will be the result of this file?

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

12th Mar 2017, 4:59 AM
Vaidehi Singh
Vaidehi Singh - avatar
6 odpowiedzi
+ 1
The answer is 5
21st May 2018, 9:44 AM
NATUKUNDA PASCAL
NATUKUNDA PASCAL - avatar
0
אני לאט הבנתי איך זה נהיה אפשר דרך תשובה ללא דרך זה לא תשובה
5th Feb 2019, 11:06 AM
malki
0
Answer without a way is not an answer !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! It doesn't respect the sotware
5th Feb 2019, 11:08 AM
malki
0
Answer without a way is not an answer !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! אבל בכל אופן תודה למרות שלא הבנתי כלום
5th Feb 2019, 11:12 AM
vered shtrauss
0
מה שאני יודעת זה בזכות ה google translate
5th Feb 2019, 11:12 AM
vered shtrauss
0
5
11th Jan 2020, 7:15 AM
Babeetha Muruganantham
Babeetha Muruganantham - avatar