Three types of integer literals are allowed in Python.

Decimal – Written normally and doesn’t begin with a 0.

Octal – Written as 0o10, which is 8 in octal number system

Hexadecimal – Written as 0xC, which is 12 in octal number system

Three types of integer literals are allowed in Python.

Decimal – Written normally and doesn’t begin with a 0.

Octal – Written as 0o10, which is 8 in octal number system

Hexadecimal – Written as 0xC, which is 12 in octal number system