On 20/08/12 08:50, gianpy...@gmail.com wrote:
Hi,
as you can argue from the subject, i'm really,really new to python.
What is the best way to achieve that with python? Because the syntax 
int('30',2) doesn't seem to work

>>> x = bin(30)[2:]
>>> x
'11110'
>>> int(x, 2)
30
>>>

lipska

--
Lipska the Kat©: Troll hunter, sandbox destroyer
and farscape dreamer of Aeryn Sun
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to