CentreForDigitalHumanities / CentreForDigitalHumanities/programming-in-python

Exercise 7.1.3 should be simplified

Open
#17 1 comment 0 reactions 1 assignee Claimed by @JeltevanBoheemen View on GitHub
Dominant language
Jupyter Notebook
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.