Solution :
We need to write a function named ''[tex]$\text{word}$[/tex]_[tex]$\text{count}$[/tex]". The program takes a string and then returns a dictionary which maps the case insensitive word.
def [tex]$\text{word}$[/tex]_[tex]$\text{count}$[/tex](s):
[tex]$\text{words}$[/tex] = [tex]$\text{s.lower}$[/tex]().split()
[tex]$\text{result}$[/tex] = {}
for [tex]$x$[/tex] in words:
if [tex]$x$[/tex] in [tex]$\text{result}$[/tex].keys():
[tex]$\text{result}$[/tex][x] += 1
else:
[tex]$\text{result}$[/tex][x] = 1
return [tex]$\text{result}$[/tex]