Skip to content

Commit

Permalink
Merge pull request #140 from kiseok7/master
Browse files Browse the repository at this point in the history
fixed comparison operator. "is" to "=="
  • Loading branch information
yasoob committed Oct 26, 2016
2 parents 33016cf + 873e7a3 commit ad43c60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comprehensions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Here is a short example:

.. code:: python
multiples = [i for i in range(30) if i % 3 is 0]
multiples = [i for i in range(30) if i % 3 == 0]
print(multiples)
# Output: [0, 3, 6, 9, 12, 15, 18, 21, 24, 27]
Expand Down

0 comments on commit ad43c60

Please sign in to comment.