Contact: aviboots(AT)netvision.net.il
38,113 questions
49,718 answers
573 users
keys = ['key1', 'key2', 'key3', 'key4'] dic = {key: [0, 0] for key in keys} print(dic) ''' run: None {'key1': [0, 0], 'key2': [0, 0], 'key3': [0, 0], 'key4': [0, 0]} '''