[Tutor] Remove a number from a string
Alan G
alan.gauld at freenet.co.uk
Wed Aug 24 09:24:10 CEST 2005
>> s = ' '.join(s.split()[1:])
>
> or just
> s = s.split(None, 1)[1]
Neat, I hadn't noticed the maxsplit parameter before.
Alan G.
More information about the Tutor
mailing list