swcarpentry / python-novice-gapminder

Plotting and Programming in Python
http://swcarpentry.github.io/python-novice-gapminder/
Other
163 stars 427 forks source link

Update Slicing Concepts exercise (part of issue #460) #567

Closed betsybookwyrm closed 2 years ago

betsybookwyrm commented 3 years ago

Updates the Slicing Concepts exercise of the Variables lesson to:


Addresses the Slicing Concepts part of issue #460 , but not the other ideas in there. Follows the model given by @mforneris, and also adds the double negative indices example suggested by @brianmatthewthomas .


I haven't managed to get make lesson-check work for me (I assume that's the best way for me to test my changes don't break the page formatting locally before submitting?) so this is unchecked, sorry.

Also, sorry about the whitespace changes, I'm having trouble committing the file without making those changes for some reason.

If either of these are problems, let me know and I'll put more time into fixing them!

betsybookwyrm commented 2 years ago

I've incorporated the typo fix and the suggestion above :) Also rebased on gh-pages branch.

Also, thanks @alee for the tip about make docker-serve, I got that working, it's very nice!