Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
pmbhatiya authored Apr 1, 2020
1 parent 8777232 commit 3b35c27
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Exceptions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Python Exceptions HackerRank solution

N=int(input())
for i in range(N):
try:
a,b=map(int,input().split())
try:
print(int(a//b))
except ZeroDivisionError as e1:
print("Error Code:",e1)
except ValueError as e:
print("Error Code:",e)

0 comments on commit 3b35c27

Please sign in to comment.