Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exercise 7.1.3 should be simplified #17

Open
JeltevanBoheemen opened this issue Oct 16, 2024 · 1 comment
Open

Exercise 7.1.3 should be simplified #17

JeltevanBoheemen opened this issue Oct 16, 2024 · 1 comment
Assignees

Comments

@JeltevanBoheemen
Copy link
Contributor

JeltevanBoheemen commented Oct 16, 2024

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.

@JeltevanBoheemen JeltevanBoheemen self-assigned this Oct 16, 2024
@jgonggrijp
Copy link
Contributor

Is it really a problem that the students don't know the syntax? I vaguely recall going over this exercise in May. The students asked about it and some were able to guess what it meant. I explained it to the rest of the students. We were able to move on without much fuss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants