make a string a list

Alan Isaac aisaac at american.edu
Thu May 29 18:05:49 EDT 2008


Nikhil 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. 

Why dont the ``find`` or ``index`` methods work for you?
http://docs.python.org/lib/string-methods.html

Cheers,
Alan Isaac



More information about the Python-list mailing list