Slice last char from string without raising exception on empty string (Re: Extract all words that begin with x)
python at bdurham.com
python at bdurham.com
Tue May 11 12:01:38 EDT 2010
Superpollo,
> word[len(word)-1:]
Perfect! Thank you,
Malcolm
More information about the Python-list
mailing list