Word counting in dictionary

#counting words by defining a function
def dict_func(string):
l=string.split(" ")
d=dict()
for word in l:
d[word]=d.get(word,0)+1
return(d)
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).