Skip to content

Commit

Permalink
Merge pull request #246 from encukou/patch-2
Browse files Browse the repository at this point in the history
Python intro: range is a function, not a method
  • Loading branch information
aniav committed Feb 5, 2015
2 parents ab43efa + 95bde42 commit cde9bc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/python_introduction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ and when we run it:

As you can see, everything you put inside a `for` statement with an indent will be repeated for every element of the list `girls`.

You can also use `for` on numbers using the `range` method:
You can also use `for` on numbers using the `range` function:

for i in range(1, 6):
print(i)
Expand Down

0 comments on commit cde9bc2

Please sign in to comment.