Isn't there a substring(start, end)-function????
wt at nic.fi
Wed Aug 6 13:55:57 CEST 2003
> substring(beginIndex, endIndex) witch returns the substring between
> beginIndex and endIndex.
> text = "If someone attacks you with a banana"
> print text.substring(0,3)
> Should print "If "
text = "If someone attacks you with a banana"
Timo Virkkala | wt at nic.fi
"In the battle between you and the world, bet on the world."
More information about the Python-list