create new variables from dictionary keys code example
Example: python declare variables from dictionary
>>> d = {'a':1, 'b':2}
>>> for key,val in d.items():
exec(key + '=val')
>>> d = {'a':1, 'b':2}
>>> for key,val in d.items():
exec(key + '=val')