a_string = "you string here" word_list = a_string.split() number_of_words = len(word_list) print(number_of_words)
a_string = "one two three four" word_list = a_string.split() print(len(word_list)) # Outputs 4