Originally Posted by

**raxer007**
How should i change it?

It looks like you're trying to use the fact that you get the golden ratio if you divide two consecutive numbers in the Fibonacci sequence?

Since I don't know any Python I have to cheat and search internet,

https://www.programiz.com/python-pro...acci-recursion

Code:

def recur_fibo(n):
if n <= 1:
return n
else:
return(recur_fibo(n-1) + recur_fibo(n-2))

This then will produce the golden ratio,

Code:

def recursive_phi(n):
return(recur_fibo(n) / recur_fibo(n-1))

If it works it proves Python is so easy you don't need any Python knowledge at all to use it.