Write word_freq(text) returning a dict of lower-case word counts (words are separated by spaces).
word_freq('the cat the dog')
→ {'the': 2, 'cat': 1, 'dog': 1}word_freq('')
→ {}Submit runs 4 tests, including hidden edge cases.
Run your code to see the output here.