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

Lesson 04: Solutions omitting slice indices before explanation #1071

Open
kpidge opened this issue Oct 27, 2023 · 0 comments
Open

Lesson 04: Solutions omitting slice indices before explanation #1071

kpidge opened this issue Oct 27, 2023 · 0 comments

Comments

@kpidge
Copy link

kpidge commented Oct 27, 2023

How could the content be improved?

There are a couple of exercises towards the end of lesson 04 (lists) that have solutions omitting list indices, but there is no prior discussion of this possibility, or how to do it. This is particularly relevant for the exercise "Slicing from the end" (linked below), where the solution requires omission of a slice index. This exercise could be moved so that it is located after the subsequent discussion of this concept, and similar for the "Non-continuous slices" exercise (though for this one, the brief explanation of how the indices can be left out could just be removed).

Edit:
I remembered that there is an explanation of slicing and leaving out indices here, preceding the mentioned exercises. I still think the ordering could be revised, though that depends on how difficult the exercises in lesson 04 are intended to be.

Which part of the content does your suggestion apply to?

https://swcarpentry.github.io/python-novice-inflammation/04-lists.html#slicing-from-the-end

@kpidge kpidge changed the title Lesson 04: Solutions omitting list indices before explanation Lesson 04: Solutions omitting slice indices before explanation Oct 27, 2023
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

1 participant