RE: Learning Python Part 3

avatar

You are viewing a single comment's thread:

Hello @cmplxty great tutorial . I would however like a source code at the end if possible ? That would be super helpful :)



0
0
0.000
4 comments
avatar
(Edited)

Thanks! The code I am using for this is:

num = int(input())

def fibonacci(num):
#complete the recursive function
if num <= 1:
return 1
else:
return ((num-1) + (num-2))

print(fibonacci(num))

0
0
0.000
avatar

!WINE

0
0
0.000
avatar

lol thanks, could use some wine right about now!

I ended up solving the problem thankfully. I don't remember specifically what it was I had to do but it's done now!

0
0
0.000