Golden Ratio Formula given below :
φ = ( 1 + √5 ) / 2 = 1.6180339887498948482045868 ...
in python , the correct code would be
ratio = (1+5**(1/2))/2
print (ratio)
https://goodcalculators.com/golden-ratio-calculator/
Has an calculator to find the numbers satisfying Golden Ratio.Given A or B or (A+B) , it returns the other 2 numbers which would be part of the Golden Ratio.