Write a lambda functio that gives the word count in a statement.
Topic: Write a lambda functio that gives the word count in a statement.
Solution
count_word = lambda s: len(s.split(' '))
List all Python Programs
Solution
count_word = lambda s: len(s.split(' '))