make a string a list

Lie Lie.1296 at gmail.com
Tue Jun 3 08:27:47 EDT 2008


On May 30, 4:30 am, Nikhil <mnik... at gmail.com> wrote:
> or a string iterable ? How can I do that. I have lots of '\r\n'
> characters in the string which I think can be easier if it were made
> into a list and I can easily see if the required value (its a numeral)
> is present in it or not after some position or after some characters'
> position.
>
> Thanks,
> Nikhil

Isn't it already iterable? And combined with str.split(), it could be
line iterable too.



More information about the Python-list mailing list