Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Oct 14, 2016

This is a maths-based example for enumerate in reference to issue #276. I found it a bit difficult to find a use for enumerate which wasn't better served with zip or slicing. An obvious one is to report errors on line / column numbers, but that usually requires if, which hasn't been introduced yet.

[This is my instructor training checkout contribution]

@gvwilson
Copy link
Contributor

Thanks very much for the PR - can you please mail gvwilson@software-carpentry.org so that we can match this GitHub account to a person?

@tbekolay tbekolay merged commit bb8857f into swcarpentry:gh-pages Dec 15, 2016
@tbekolay
Copy link
Contributor

I like this exercise a lot! The solution is nice and short which makes it doable in a short time period, as well as shows off the power of for loops.

One issue is that you need a new line separating your exercise from the other exercises around it. I'll fix this in the merge, but keep that in mind if you make more exercises in the future.

Thanks!

@ghost
Copy link
Author

ghost commented Dec 16, 2016

I'll remember to add a new line next time :) Hope the exercise is useful to someone, thanks for merging.

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

Successfully merging this pull request may close these issues.

3 participants