Contact: aviboots(AT)netvision.net.il
41,229 questions
53,731 answers
573 users
keys = ['key1', 'key2', 'key3', 'key4'] dic = {key: [0, 0] for key in keys} print(dic) ''' run: {'key1': [0, 0], 'key2': [0, 0], 'key3': [0, 0], 'key4': [0, 0]} '''