Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (16.4k points)
In Python3 versus Python2.6, I've seen that I can divide the two integers and get a float. How would you get the Python2.6 conduct back? Is there an alternate method to get int/int = int?

1 Answer

0 votes
by (26.4k points)

Try the following code:

a = 1

b = 2

int_div  = a // b

Are you interested to acquire a knowledge of the concepts of Python? Join our python training course!

Related questions

0 votes
1 answer
0 votes
4 answers
0 votes
5 answers
0 votes
1 answer
asked Mar 16, 2021 in Python by laddulakshana (16.4k points)

Browse Categories

...