There are several things you should take care of:
- if you want to call function then you need to use () i.e
- if function body doesn't return (or yield) anything it returns None (and your function does the latter)
So even if you fix your first problem you will run into second.
EDIT: if you fix your code you should also reconsider your approach. It's unclear what is you objective - 'first letter of a string' (as in thread name) or 'first letter of each word' in thread itself.
- if you want to call function then you need to use () i.e
songnames = access_data()
- if function body doesn't return (or yield) anything it returns None (and your function does the latter)
So even if you fix your first problem you will run into second.
EDIT: if you fix your code you should also reconsider your approach. It's unclear what is you objective - 'first letter of a string' (as in thread name) or 'first letter of each word' in thread itself.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.