
Implement tally_words, which returns how many times each word of text appears.
tally_words("pong ping ping"){'pong': 1, 'ping': 2}tally_words("row row Row\nboat"){'row': 2, 'Row': 1, 'boat': 1}tally_words(" "){}tally_words.py
Run the tests to grade your code
Implement tally_words, which returns how many times each word of text appears.
tally_words("pong ping ping"){'pong': 1, 'ping': 2}tally_words("row row Row\nboat"){'row': 2, 'Row': 1, 'boat': 1}tally_words(" "){}tally_words.py
Run the tests to grade your code
Variables will appear here