To denote an octal literal, use 0 followed by a sequence of octal digits (0 to 7). : integer « Data Type « Python Tutorial






To indicate a hexadecimal literal, use 0x followed by a sequence of hexadecimal digits (0 to 9 and A to F, in either upper- or lowercase). 

1, 23, 3493                  # Decimal integers
01, 027, 06645               # Octal integers
0x1, 0x17, 0xDA5             # Hexadecimal integers


# Math operator
print -2 * 4 + 3 ** 2








2.10.integer
2.10.1.To denote an octal literal, use 0 followed by a sequence of octal digits (0 to 7).
2.10.2.Simple addition program.
2.10.3.Compare integers using if structures, relational operators and equality operators.
2.10.4.X // Y: Floor division truncates fractional remainders down to their floor