We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Introduction
- Python: Division
- Discussions
Python: Division
Python: Division
Sort by
recency
|
1012 Discussions
|
Please Login in order to post a comment
Can anyone tell me why testcase 1 is not running (it's showing it is wrong)?
if name == 'main': a = int(input()) b = int(input()) print(a // b) print(a / b)
**** * i'm using the discussion section to explain to my self what the code is doing // deals with ineger division and / does flaots
Why is it every time showing test case wrong although my coding is correct, I have run the same code on Google collab and it's working fine on that ....can anyone help me what is wromg here??!! if name == 'main': a = int(input()) b = int(input()) print("Division:", a // b) print("Float Division:", a / b)
Here is Python: Division solution - https://programmingoneonone.com/hackerrank-python-division-problem-solution.html