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?

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to