RE: Learning Python Part 3

avatar
(Edited)

You are viewing a single comment's thread:

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
3 comments
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