You are viewing a single comment's thread. Return to all comments →
t=int(input()) for _ in range(t): try: a,b=input().split() a,b=int(a),int(b)
print(a//b) except ZeroDivisionError as e: print("Error Code:",e) except ValueError as d: print("Error Code:",d)
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 →
t=int(input()) for _ in range(t): try: a,b=input().split() a,b=int(a),int(b)