keys = ['x', 'y', 'z'] v = 5 mydict = {k:v for k in keys} print(mydict)