Given two perpendicular sides of a right triangle a = 3 and b = 4, calculate the length of the hypotenuse c = sqrt(a^2 + b^2) without importing the math module (use the exponentiation operator ** 0.5). Print c as an integer.
Instructions
Use the `**` operator for powers.
Calculate `c = (a**2 + b**2) ** 0.5`.
Print `int(c)`.
Progressive Hints (1 / 2)
In Python, `x ** 2` raises `x` to the power of 2.
solution.py
Ctrl+Enter to run
Loading Monaco Editor...
Press Ctrl+Enter or click "Run Code" to execute your solution in the browser.