Python Integers: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
Line 8: Line 8:
<class 'int'>
<class 'int'>
</syntaxhighlight>
</syntaxhighlight>
In Python 2, an integer was limited to 32 bits. In Python 3, integers can be any size.
=Bases=
=Bases=
<font color=darkkhaki>[[IPy]] Bases Page 26.</font>
<font color=darkkhaki>[[IPy]] Bases Page 26.</font>
=Organizatorium=
=Organizatorium=

Revision as of 05:10, 18 June 2022

Internal

Overview

Whole numbers, expressed as numeric constants that do not contain a decimal point.

x = -20
type(x)
<class 'int'>

In Python 2, an integer was limited to 32 bits. In Python 3, integers can be any size.

Bases

IPy Bases Page 26.

Organizatorium