You are viewing a single comment's thread. Return to all comments →
Python 3
T = int(input()) for i in range(T): try: a, b = map(int,input().split()) print(a//b) except (ZeroDivisionError, ValueError) as e: print('Error Code:', e)
Exceptions
You are viewing a single comment's thread. Return to all comments →
Python 3