How to Divide in Python

The divide operator in the Python programming language is / (forward slash). Pass the numbers to divide on the left and right side of the divide operator and store the result in a variable.


output = 10 / 3



Divide Integers in Python

The integer divider operator in Python is // (two forward slashes). It will divide two number and round the result down to the nearest integer. This operator always rounds the result down.


output = 10 // 3