CentreForDigitalHumanities / CentreForDigitalHumanities/programming-in-python

Exercise 7.1.3 should be simplified

未關閉
#17 1 則留言 0 個 reaction 已指派 1 人 已被 @JeltevanBoheemen 認領 在 GitHub 檢視
主要語言
Jupyter Notebook
星號
1
分支
1
PR 合併指標
30 天內沒有已合併 PR

描述

Exercise 7.1.3 includes the lines:
```
first, *rest = list(words)
text = first
for word in rest:
```

Students are not familiar with this syntax and it should be replaced with:
```
text = words[0]
for word in words[1:]:
```

Also, parameter names `word` or `characters` make more sense since the function is invoked with a single word.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。