Question: in python def count_words (text): ***Return a dictionary having the words in the text as keys, and the numbers of occurrences of the words as

in python
def count_words (text): ***"Return a dictionary having the words in the text as keys, and the numbers of occurrences of the words as values. Assume a word is a substring of letters and digits and the characters '+', '*', '/', '@', '#', '%', and separated by whitespace, newlines, and/or punctuation (characters like ; ! ? & ( ) [] ). Convert all the letters to lower-case before the counting
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
