Skip to content

Instantly share code, notes, and snippets.

@AnisahTiaraPratiwi
AnisahTiaraPratiwi / calculator.py
Created March 20, 2021 10:04
Replace the ___ placeholder and calculate the Golden ratio: \frac{1+\sqrt{5}}{2} 2 1+ 5 ​ ​ . Tip: to calculate the square root of a number xx, you can use x**(1/2).
ratio = ((1+(5**(1/2)))/2)
print(ratio)