super quick question

Chris chrispatton at gmail.com
Fri Aug 4 18:11:17 EDT 2006


It's very beautiful. Thanks
jwoolard wrote:
> Chris wrote:
> > is there a prettier way to do this?
> > string[:len(string)-1]
> >
> > thanks!
>
> string[:-1]
>
> Negative indices count from the end of the string! beautiful isn't it?




More information about the Python-list mailing list