what about: >>> lst = [digit for digit in '06897'] >>> lst ['0', '6', '8', '9', '7']
Claudio <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > I'm trying to extract single digit number from a string. > > t[1] = '06897' > > I want to get the 7, 9,8 & 6 seperated out to use but can't find a way > to split out the single characters. > > Thanks > -- http://mail.python.org/mailman/listinfo/python-list