You are viewing a single comment's thread. Return to all comments →
print(f'{a//b}\n{a/b}')
I think using an F-String is the shortest way to do this.
https://realpython.com/python-f-strings/
Should work in python 3.6
Seems like cookies are disabled on this browser, please enable them to open this website
Python: Division
You are viewing a single comment's thread. Return to all comments →
print(f'{a//b}\n{a/b}')
I think using an F-String is the shortest way to do this.
https://realpython.com/python-f-strings/
Should work in python 3.6