ime_3/06 - Seleção/triangle.py
2022-03-15 19:34:21 -03:00

3 lines
122 B
Python

def hypotenuse(a, b):
"""Calculates the hipotenuse of a triangles with sides a and b"""
return (a**2 + b**2)**0.5