What does integer mean?

A whole number, positive, negative or zero, with no fractional part: 3, -12, 0. Python calls the type int.

Also written as: integers, int

In a lesson

20 / 5 printed 4.0, not 4: / always gives a float, even when the answer is whole. // gives an integer. round tidies a long float: the second argument is how many decimal places to keep.

Learn it

Used in

and 93 more lessons.

Do the lesson in the simulator

All glossary terms