You are viewing a single comment's thread from:

RE: Learning Python Part 3

in STEMGeeks10 months ago

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

Sort:  

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))

!WINE


Cheers, @amr008 You Successfully Shared 0.100 WINE With @cmplxty.
You Earned 0.100 WINE As Curation Reward.
You Utilized 1/3 Successful Calls.

wine-greeting


WINE Current Market Price : 0.000 HIVE

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!