# 中學生程式設計訓練班:課後作業參考解答
## CH1
請開啟HackMD,使用markdown語法,將暑期六週課程的上課重點整理成筆記。
> 參考筆記:https://hackmd.io/Zs6DHXu5R3ulDuH1GI3Dbg
## CH2
請撰寫程式宣告一個字串變數,初始值為`hello world`,但最終輸出`WORLD HELLO`
## CH3
全班的姓名、成績如下表格請設計一個程式:
> 本題規定:使用 `Dictionary` + `List`儲存全班成績
a. 請使用for loop讀取全班各科成績,計算全班每位同學平均成績
b. 請加入一位同學"Wendy",三科分數分別是90, 88, 65,計算全班每位同學平均成績
| 姓名 | Chaoyen | Joanne | Manchester |
| -------- | -------- | -------- | --- |
| 國文科成績 | 78 | 67 | 77 |
| 英文成績 | 90 | 98 | 54 |
| 數學科成績 | 66 | 87 | 89 |
```python=
student = {"Chaoyen":[78,90,66],
"Joanne":[67,98,87],
"Manchester":[78,90,66],
}
student.update({"Wendy":[78,90,66]})
for student_name in student:
sum = 0
for score in student[student_name]:
sum += score
avg = sum / len(student[student_name])
print("{0}'s average score = {1}".format(student_name, avg))
```
###### tags: `中學生程式設計訓練班`