From 914483337a0bede7835a17da74cc57d7ad04a71a Mon Sep 17 00:00:00 2001 From: cswimr Date: Tue, 24 Sep 2024 10:41:58 -0400 Subject: [PATCH] removed redundant folder Signed-off-by: cswimr --- Hypotenusenuse/main.py | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 Hypotenusenuse/main.py diff --git a/Hypotenusenuse/main.py b/Hypotenusenuse/main.py deleted file mode 100644 index d0bfdb0..0000000 --- a/Hypotenusenuse/main.py +++ /dev/null @@ -1,23 +0,0 @@ -from math import sqrt - - -def calculate_hypotenuse( - x: float, y: float -) -> float: # This function will calculate our hypotenuse - x = float( - x - ) # These 2 parts are both checks to attempt to convert our input into floats - y = float(y) - return sqrt( - x**2 + y**2 - ) # If we're able to convert both of our inputs into floats, we return our result - - -if __name__ == "__main__": - x = input("Input your A: ") - y = input("Input your B: ") - try: - result = calculate_hypotenuse(x, y) - print(f"{round(result)} ({result})") - except ValueError: - print("Error! Please do not input strings.")