I have this dispatch dict that i want to fill with 1000s of keys, mostly tied to one function. Although assigning keys to different functions is a future requirement. Currently tho, there's gotta be something better than this:
art = json.dumps(work['artist_name'])
phonenumber = json.dumps(work['From'])
x = getnewmusic()
artists = {'drake':x, 'jayz':x, 'nas':x,'lil wayne':x,'schoolboyq':x,
'kendrick lamar':x, 'j cole':x}
if art in artists:
artists[art](art,phonenumber)
Anything fastest, better standard practice, future problems?