Last active
January 2, 2016 16:19
-
-
Save notblizzard/8329594 to your computer and use it in GitHub Desktop.
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
# pythagorean theorem | |
from math import sqrt | |
def pory(a,b,c): | |
asquare = a*a | |
bsquare = b*b | |
c = asquare + bsquare | |
c = sqrt(c) | |
print "Solving the Pythagorean Theorem for "+a+" and "+b+" is "+c+"" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment