• + 2 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}")