Right Angle Triangle Formula In Python