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

5 lines
142 B
Python
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
>>> # Bin(leading 0b or 0B), Oct(leading 0o or 0O), Dec, Hex(leading 0x or 0X), in order:
>>> 0b1011010111 == 0o1327 == 727 == 0x2d7
True
>>>