We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
t = int(input())
for i in range (t):
try:
a, b= input().split()
print(int (a)// int (b))
except (ZeroDivisionError, ValueError) as e:
print("Error Code:",e)
Exceptions
You are viewing a single comment's thread. Return to all comments →
PyPy 3
t = int(input()) for i in range (t): try: a, b= input().split() print(int (a)// int (b)) except (ZeroDivisionError, ValueError) as e: print("Error Code:",e)