Slicing every element of a list

bruno modulix onurb at xiludom.gro
Wed Jul 13 04:19:41 EDT 2005


Alex Dempsey wrote:
> Recently I tried to slice every element of a list of strings. First I tried:
> 
> f = open("export.xls", "r")

http://www.python.org/doc/2.4.1/lib/module-csv.html

(snip, see other posts in this thread)

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list