How can I split a string like "five 6 seven, eight!nine"
to have only words? I mean remove everything and count the words? or in other words, how split a sentence with several delimiters? I should not use libraries.
def count_words(string):
testlen=string.split( )
return len(testlen)