python/exception_1.py
2022-08-02 11:28:25 +00:00

10 lines
167 B
Python

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