You are viewing a single comment's thread. Return to all comments →
my code :
t = int(input())
for _ in range(t): elements = input().split()
try: r = int(elements[0]) / int(elements[1]) print(int(r)) except ZeroDivisionError as ze: print("Error Code: integer division or modulo by zero") except ValueError as ve: print(f"Error Code: {ve}")
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 →
my code :
t = int(input())
for _ in range(t): elements = input().split()