Triangle practice
by Bernie '21
def pythagSolve(side_A, side_B):
side_A = side_A ** 2
side_B = side_B ** 2
side_C= (side_A + side_B) ** 0.5
return side_C
Function Call | Return Value | |||
---|---|---|---|---|
pythagSolve(8, 6) | → | |||
pythagSolve(3, 4) | → | |||
pythagSolve(4, 3) | → | |||
pythagSolve(5, 12) | → |
Experiment with this code on Gitpod.io