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
|
1018 Discussions
|
Please Login in order to post a comment
if name == 'main': a = int(input()) b = int(input()) int_input=a//b float_input=a/b print(int_input) print(float_input)
a = int(input()) b = int(input()) print(f'{a//b}\n{a/b}')
a=int(input()) b=int(intput()) c=a//b d=a/b print(c) print(d)
Great introduction to Python basics! It’s a small but important concept that forms the foundation for many future problems. Cricbet99 club
can anyone tell if this is necessary? if name == 'main':
What is it's purpose, if you can print without also?