RosettaCodeData/Task/Literals-Integer/Python/literals-integer-2.py

5 lines
162 B
Python

>>> # Bin(leading 0b or 0B), Oct(leading 0o or 0O, or just 0), Dec, Hex(leading 0x or 0X), in order:
>>> 0b1011010111 == 0o1327 == 01327 == 727 == 0x2d7
True
>>>