Exemple #1
0
 def test_pythagoras(self):
     self.assertEqual("Hypotenuse = 3.605551275463989", pythagoras(3, 2, "?"))
 def test_pythagoras(self):
     self.assertEqual("Hypotenuse = 3.605551275463989",
                      pythagoras(3, 2, "?"))
"""
input two of the three side in right angled triangle and return the third. use "?" to indicate the unknown side.
"""
from algorithms.maths import pythagoras

# opposite,adjacent,hypotenuse

print(pythagoras(10, 4, "?"))