CentreForDigitalHumanities / CentreForDigitalHumanities/programming-in-python
Exercise 7.1.3 should be simplified
未關閉
- 主要語言
- 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 還沒有評估資料。