How many types of integer literals are allowed in Python ? How are they written ?

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