Multi of word in dict

I’m guessing the line that goes here is:

push!(d[count], str[i])

and rather than d[count] = str[1], you wanted d[count] = [str[i]]

1 Like