demo_ref_dictionary_fromkeys2.py:
x = ('key1', 'key2', 'key3') thisdict = dict.fromkeys(x) print(thisdict)
C:\Users\My Name>python demo_dictionary_fromkeys2.py
['key1': None, 'key2': None, 'key3': None]