CentreForDigitalHumanities / CentreForDigitalHumanities/programming-in-python

Exercise 7.1.3 should be simplified

Đang mở
#17 1 bình luận 0 reaction 1 người được giao Được @JeltevanBoheemen nhận Xem trên GitHub
Ngôn ngữ chính
Jupyter Notebook
Star
1
Fork
1
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.