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