You are viewing a single comment's thread. Return to all comments →
for i in range(n): try: a=list(input().split()) print(int(int(a[0])/int(a[1])))
except ZeroDivisionError as e: print("Error Code: integer division or modulo by zero") except ValueError as e: print("Error Code:", e) except Exception as e: print("Error Code:", e)
Seems like cookies are disabled on this browser, please enable them to open this website
Exceptions
You are viewing a single comment's thread. Return to all comments →
for i in range(n): try: a=list(input().split()) print(int(int(a[0])/int(a[1])))