Skip to content

Instantly share code, notes, and snippets.

@AnisahTiaraPratiwi
Created March 20, 2021 10:04
Show Gist options
  • Save AnisahTiaraPratiwi/70738c5fa89063d5d17a7fde03553b7d to your computer and use it in GitHub Desktop.
Save AnisahTiaraPratiwi/70738c5fa89063d5d17a7fde03553b7d to your computer and use it in GitHub Desktop.
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)
@moh707
Copy link

moh707 commented Aug 12, 2021

ratio = ((1+(5**(1/2)))/2)
print(ratio)

@0022peter
Copy link

This really help me like a lot, so I wanna say thank u so much.

@picks43
Copy link

picks43 commented Apr 6, 2023

Thank you!

@wittikay
Copy link

This helps a ton! Thank you!

@tadeletekeba13
Copy link

@moh707 Thank you!

@PratimaMishra28
Copy link

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment