Refering to substring of list containing strings

Peter Kovalsky julschae at usa.net
Sat Apr 8 05:07:57 EDT 2000


Hi,

I am new to Python and lately experienced a little problem. I have a list 
with several strings and have to modify these strings. Therefore I used a
for-construct (for i in range(0, len(mylist)))- to operate every lists 
element. But how do I adress a substring in such a list? I tried a
	mylist[i][lborder:rorder]
- just like one would do with a simple string-var - wich won' t work. Any
help would be greatly appreciated,

thanx in advance,

Peter Kovalsky



More information about the Python-list mailing list