diff --git a/exception_1.py b/exception_1.py new file mode 100644 index 0000000..7e2fdbf --- /dev/null +++ b/exception_1.py @@ -0,0 +1,9 @@ +while True: + try: + x = int(input("What's x: ")) + y = int(input("What's y: ")) + except: + print("Error") + else: + break +print(x + y)