def main():
N = 6
total = 0
word = [] ##리스트 선언
## CS는 리스트지만 그안의 값은 딕셔너리형태로 가지고 있음
CS = [
{"subject": "Programing", "score":80},
{"subject": "System_Analysis", "score":90},
{"subject": "Database", "score":80},
{"subject": "Architecture", "score":90},
{"subject": "Network", "score":80},
{"subject": "Internet", "score":90},
]
for i in range(N):
word.append(CS[i]["subject"][i])
total += CS[i]["score"]
result_word = ''.join(word)
avg_score = total/N
print(f"{result_word} {avg_score:5.2f}")
main()
To embed this project on your website, copy the following code and paste it into your website's HTML: