Skip to content

Python integers | Basic

  • by

Python integer (int), is a whole number, positive or negative, without decimals, of unlimited length. The integers are zero, positive or negative whole numbers without a fractional part and having unlimited precision, e.g. 0, 100, -10.

Python integers

A simple example code uses the type() method to get the class name.

x = 1
y = 35636363
z = -10001000



Python integers

Do comment if you have any doubts or suggestions on this Python basic topic.

Note: IDE: PyCharm 2021.3.3 (Community Edition)

Windows 10

Python 3.10.1

All Python Examples are in Python 3, so Maybe its different from python 2 or upgraded versions.

Leave a Reply

Your email address will not be published. Required fields are marked *