for i inrange(int(input())):try: a, b =map(str, input().strip().split(' '))print(int(a) //int(b))exceptValueErroras e:print(f"Error Code: {e}")exceptZeroDivisionErroras e:print(f"Error Code: {e}")
Incorrect Regex
# Run with pypy3import refor _ inrange(int(input())): regex =input()try: re.compile(regex)print(True)except re.error:print(False)