Skip to content

Commit

Permalink
changed from tab to 4space indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
madfolio authored Apr 24, 2017
1 parent 4a650c1 commit 4b41c83
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions math/pythagoras.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"""

def pythagoras(opposite,adjacent,hypotenuse):
if opposite == str("?"):
print ("Solving for opposite")
return ((h**2) - (a**2))**0.5
elif adjacent == str("?"):
print ("Solving for adjacent")
return ((h**2) - (o**2))**0.5
elif hypotenuse == str("?"):
print ("Solving for hypotenuse")
return ((o**2)+(a**2))**0.5
else:
return "you already know the answer!"
if opposite == str("?"):
print ("Solving for opposite")
return ((hypotenuse**2) - (adjacent**2))**0.5
elif adjacent == str("?"):
print ("Solving for adjacent")
return ((hypotenuse**2) - (opposite**2))**0.5
elif hypotenuse == str("?"):
print ("Solving for hypotenuse")
return ((opposite**2)+(adjacent**2))**0.5
else:
return "you already know the answer!"

0 comments on commit 4b41c83

Please sign in to comment.