Integer division
ImiekameLonge (1)

What does double slash do in python, and what is integer division?

You are viewing a single comment. View All
NSCarter (3)

// is floor division. This means that when you divide two integers it rounds it down to a whole number e.g.
10 / 3 = 3.33333...
10 // 3 = 3

Integer division is where the remainder from a division is disregarded e.g. 3.333 would become 3

ImiekameLonge (1)

@NSCarter Thanks for the clairification!