# Do you know what the Pythagoras Theorem is?
# The Pythagoras theorem states that “In a right-angled triangle, the square of the hypotenuse side is equal to the sum of squares of the other two sides“.
# The sides of this triangle have been named as Perpendicular, Base and Hypotenuse.
# The hypotenuse is the longest side, as it is opposite to the angle 90°.
"""-------Task 1: What's missing in the right angled triangle? ------"""
print(" ")
print("*** Task 1: ***")
# Write a program to calculate the hypotenuse of a right angled triangle.
side1 = int(input("Enter the length.\n"))
side2 = int(input("Enter the length of the other side."))
x = side1**2
x1 = side2**2
Fin = x + x1
hypotenuse = Fin ** 0.5
print(f"\nThe length of the hypotenuse is {hypotenuse}")
''' Awesome!! You have successfully created a Pythagorean Theorem calculator. Congratulations!!'''
To embed this project on your website, copy the following code and paste it into your website's HTML: