HackerRank- Python: Division




Problem 4:

Read two integers and print two lines. The first line should contain integer division, a // b. The second line should contain float division, a / b.



  1. if __name__ == '__main__':
  2. a = int(input())
  3. b = int(input())
  4. print(a//b)
  5. print(a/b)




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