On Thu, Sep 24, 2009 at 1:05 PM, MacRules <macru...@none.com> wrote: > s="1234abcd" > s.range(0..4) > 1234a > > Is there a string function like this? > > Use the slice.
>>> s = "1234abcd" >>> s[:5] '1234a' Cheers, Xav
-- http://mail.python.org/mailman/listinfo/python-list