Literals/Integer: Difference between revisions

Content deleted Content added
→‎{{header|Python}}: Put historical version last
Line 134: Line 134:


=={{header|Python}}==
=={{header|Python}}==
{{works with|Python|3.0}} and {{works with|Python|2.6}}
{{works with|Python|3.0}}
{{works with|Python|2.6}}
<lang python>>>> # Bin(leading 0b or 0B), Oct(leading 0o or 0O), Dec, Hex(leading 0x or 0X), in order:
<lang python>>>> # Bin(leading 0b or 0B), Oct(leading 0o or 0O), Dec, Hex(leading 0x or 0X), in order:
>>> 0b1011010111 == 0o1327 == 727 == 0x2d7
>>> 0b1011010111 == 0o1327 == 727 == 0x2d7