参考:https://stackoverflow.com/questions/49506266/three-lists-zipped-into-list-of-dicts
names = ['太郎', '次郎', '三郎', '四郎'] english_scores = [81, 72, 63, 94] math_scores = [61, 70, 85, 80] eng_key = '英語' math_key = '数学' d = {k : {eng_key : v1, math_key : v2} for k,v1,v2 in zip(names, english_scores, math_scores)} print(d)
出力結果は、