The Python Oracle

Python 3 integer division

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Hypnotic Puzzle2

--

Chapters
00:00 Python 3 Integer Division
00:20 Accepted Answer Score 269
00:27 Thank you

--

Full question
https://stackoverflow.com/questions/1950...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #python3x #division

#avk47



ACCEPTED ANSWER

Score 269


Try this:

a = 1
b = 2
int_div  = a // b