Commit 854e422a authored by HeatherAn's avatar HeatherAn Committed by Maxim Belkin

03-lists.md: improve wording (#682)

Improve wording when explaining what happens when we loop over a list.

Closes swcarpentry/python-novice-inflammation#668
parent 92bd6057
......@@ -59,7 +59,7 @@ Yes, we can use negative numbers as indices in Python. When we do so, the index
last element in the list, `-2` the second to last, and so on.
Because of this, `odds[3]` and `odds[-1]` point to the same element here.
If we loop over a list, the loop variable is assigned elements one at a time:
If we loop over a list, the loop variable is assigned to its elements one at a time:
~~~
for number in odds:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment