Spoiler to Python Challenge (help!!!)

Terry Reedy tjreedy at udel.edu
Tue Sep 27 14:46:32 EDT 2005


"Ian Vincent" <i_vincent at hotmail.com> wrote in message 
news:Xns96DE94C62328Civincenthotmailcom at 10.15.188.42...
> line = line[20:]
> line = line[:-1]

please, line = line[20:-1], etc, is easier to read and understand ;-)

tjr









More information about the Python-list mailing list