python/exception_2.py
2022-08-02 11:28:44 +00:00

9 lines
157 B
Python

while True:
try:
x = int(input("What's x: "))
y = int(input("What's y: "))
break
except:
print("Error")
print(x + y)