[Tutor] Converting a string to a list with each character as an item

Terry Carroll carroll at tjc.com
Thu Jan 11 23:05:30 CET 2007


On Thu, 11 Jan 2007, Amadeo Bellotti wrote:

> does anyone know how to do this? I need it because i want to make a binary
> coverter

>>> s = "101001100100101"
>>> l = list(s)
>>> l
['1', '0', '1', '0', '0', '1', '1', '0', '0', '1', '0', '0', '1', '0', '1']



More information about the Tutor mailing list