Skip to content

Instantly share code, notes, and snippets.

@rjshekar90
Created March 17, 2017 15:38
Show Gist options
  • Save rjshekar90/f3921b36fb00dce8f7a8f18b005a8dc5 to your computer and use it in GitHub Desktop.
Save rjshekar90/f3921b36fb00dce8f7a8f18b005a8dc5 to your computer and use it in GitHub Desktop.
for _ in range(int(input())):
try:
a, b = map(int, input().split())
print(a//b)
except (ZeroDivisionError, ValueError) as e:
print("Error Code:", e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment