Run
keys_list = ['foo', 'bar', 'moo'] my_dict = dict.fromkeys(keys_list) print(my_dict)
Output