I've written a function that takes in a phrase or sentence and outputs a dictionary with each entry being a word and the associated key being the character count.

When I call the function with `wordcount('hello my name is bobby')` it returns `{'hello': {5}, 'my': {2}, 'name': {4}, 'is': {2}, 'bobby': {5}}`  

I'm not sure why the associated key has curly brackets?  

I'd like it to return `{'hello':5, 'my':2, 'name':4, 'is':2, 'bobby':5}`. I've tried many things but can't get it to work.

```
def wordcount(text):

    from collections import defaultdict

    d = defaultdict(set)

    for word in text.split():
        d[word].add(len(word))
    return {a :b for a, b in d.items()}

```