HackerRank Python - Exceptions

You are given two values a and b.
Perform integer division and print a/b.

  1. # Enter your code here. Read input from STDIN. Print output to STDOUT
  2. for i in range(int(input())):
  3. try:
  4. a,b=map(int,input().split())
  5. print(a//b)
  6. except Exception as e:
  7. print("Error Code:",e)

download android app