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)




codesadda.com

Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more. Sign Up for our weekly newsletter to get update about new content.

Like us on Facebook | Connect with us on LinkedIn | Subscribe our Channel on Youtube