Split
Penpal International
ppi at searchy.net
Tue Apr 18 16:14:05 EDT 2000
I'm fairly new to the language python. Mostly because it's object
oriented while I'm used to perl-like scripts.
I've already managed to split a string with this:
split = regsub.split(line,'\s+')
(I think...)
I should get something like this as result:
['This', 'is', 'a', 'test', 'short', 'and', 'sweet', 'of', 'split', '']
But how can I print only the 5th for example?
--
Penpal International
http://ppi.searchy.net/
ppi at searchy.net
More information about the Python-list
mailing list