Merge pull request #1478 from aayushranaut/master

Range is not a generator
This commit is contained in:
Levi Bostian 2015-10-12 23:27:30 -05:00
commit 133baf5565

View File

@ -664,8 +664,6 @@ def double_numbers(iterable):
# Instead of generating and returning all values at once it creates one in each
# iteration. This means values bigger than 15 wont be processed in
# double_numbers.
# Note range is a generator too. Creating a list 1-900000000 would take lot of
# time to be made
# We use a trailing underscore in variable names when we want to use a name that
# would normally collide with a python keyword
range_ = range(1, 900000000)