Word counting in dictionary

#counting words by defining a function
def dict_func(string):
l=string.split(" ")
for word in l:
dict_func(‘the the zac zac max’)

please help me find whats the error in this function?

You need to change the indentation of the code inside the function. The code that comes inside a function needs to be indented towards the right side of the function declaration code (i.e. the function definition).