Question: We want to write a function that will compute and print the length of the hypotenuse of any right angle triangle. Which of the following

We want to write a function that will compute and print the length of the hypotenuse of any right angle triangle. Which of the following is correct?

A.

def print_hypotenuse(a, b):

c = (a**2 + b**2) ** 0.5

print(c)

B.

c = (3**2 + 4**2) ** 0.5

print(c)

C.

def print_hypotenuse(a, b):

c = a**2 + b**2 ** 0.5

print(c)

D. answer not shown

E.

def print_hypotenuse(3, 4):

c = (3**2 + 4**2) ** 0.5

print(c)

F.

def print_hypotenuse(a, b):

c = (a**2 + b**2) ** 0.5

print(c)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!