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 摘要。