Created
May 12, 2020 16:48
-
-
Save seisvelas/1ccb63f0d05b09fb5c631a6195745615 to your computer and use it in GitHub Desktop.
Solution to rend. with cassid. newsletter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from math import sqrt | |
def golden(a, b): | |
a, b = max(a, b), min(a, b) | |
return a / b == (a + b) / a | |
print( | |
golden(1 + sqrt(5), 2) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment