Write a program that counts the number of words in a sentence entered by the user. Use input to get the sentence as a string; use string.split() to create a list of the words. Then the length of the list is the number of words.]
1
Expert's answer
2018-04-24T08:38:04-0400
''' Write a program that counts the number of words in a sentence entered by the user. Use input to get the sentence as a string;use string.split() to create a list of the words. Then the length of the list is the number of words. '''
Comments
Leave a comment