-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.py
38 lines (30 loc) · 846 Bytes
/
error.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
'''
# Enter your code here. Read input from STDIN. Print output to STDOUT
for _ in range(int(input())):
stdin = input().split(' ')
a = int(stdin[0])
b = int(stdin[1])
try:
print(a//b)
except TypeError as e:
print('Error Code:',e)
except ZeroDivisionError as e:
print('Error Code:',e)
except SyntaxError as e:
print('Error Code:',e)
except ValueError as e:
print('Error Code:',e)
except TypeError as e:
print('Error Code:',e)
'''
'''
# Enter your code here. Read input from STDIN. Print output to STDOUT
for _ in range(int(input())):
try:
stdin = input().split(' ')
a = int(stdin[0])
b = int(stdin[1])
print(a//b)
except BaseException as e:
print('Error Code:',e)
'''