Skip to content

Instantly share code, notes, and snippets.

@AnisahTiaraPratiwi
Created March 20, 2021 10:04
Show Gist options
  • Select an option

  • Save AnisahTiaraPratiwi/70738c5fa89063d5d17a7fde03553b7d to your computer and use it in GitHub Desktop.

Select an option

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

moh707 commented Aug 12, 2021

Copy link
Copy Markdown

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

@0022peter

Copy link
Copy Markdown

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

@picks43

picks43 commented Apr 6, 2023

Copy link
Copy Markdown

Thank you!

@wittikay

Copy link
Copy Markdown

This helps a ton! Thank you!

@tadeletekeba13

Copy link
Copy Markdown

@moh707 Thank you!

@PratimaMishra28

Copy link
Copy Markdown

thanks

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