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 还没有评估数据。