197k views
1 vote
Define a function hyp(leg1, leg2) that returns the length of the hypotenuse of a right triangle

Hint: number**0.5 takes the square root of a number, number**2 squares a number

1 Answer

1 vote

I've included my code in the picture below. Best of luck.

Define a function hyp(leg1, leg2) that returns the length of the hypotenuse of a right-example-1
User Shaffick
by
6.3k points