You are viewing a single comment's thread. Return to all comments →
T = int(input()) for i in range(T): try: nums = list(map(int, input().split())) a = nums[0] b = nums[1] div = a//b except ZeroDivisionError as e: print(f"Error Code: {e}") except ValueError as n: print(f"Error Code: {n}") else: print(div)
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 →