To denote an octal literal, use 0 followed by a sequence of octal digits (0 to 7). : Integer : Data Type PYTHON TUTORIALS


PYTHON TUTORIALS » Data Type » Integer »

 

To denote an octal literal, use 0 followed by a sequence of octal digits (0 to 7).


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

1233493                  # Decimal integers
0102706645               # Octal integers
0x10x170xDA5             # Hexadecimal integers


# Math operator
print -** 2



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Data Type
» Integer