def main(): sentence = input("Enter a sentence so the program could count the number of words in the sentence: ") words = sentence.split() countWords = len(words) print(countWords)
def main(): sentence = input("Enter a sentence so the program could count the number of words in the sentence: ") words = sentence.split() countWords = len(words) print(countWords)
>>> len('qwerty') 6 >>> len([1,3,5]) 3