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
+ 18 comments print("{0}\n{1}".format(a//b, a/b))
+ 9 comments 100% working ,Simple and easy :-)
Here's Python 3 one liner.....
a,b=int(input()),int(input());print(a//b,a/b,sep='\n')
+ 1 comment nl = '\n'
print(f"{a//b}{nl}{a/b}")
Using the f-string - new format
+ 5 comments I have tried this, Passed all test cases
print((a//b),(a/b),sep='\n');
+ 3 comments vanakam da mapula mepco la irru thu
Load more conversations
Sort 675 Discussions, By:
Please Login in order to post a comment