Skip to content

Commit

Permalink
Use Python 3 print function in purity.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
plammens authored Sep 21, 2020
1 parent 20c6430 commit fa19825
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/source/purity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ input ``L`` which may have external state. Consider the following execution:
>>> data = [1, 2, 3]
>>> result = powers(data)
>>> print result
>>> print(result)
[1, 4, 9]
>>> print data
>>> print(data)
[1, 4, 9]
We see that ``powers`` affected the variable ``data``. Users of our function
Expand All @@ -59,7 +59,7 @@ Another problem occurs when we run this code in a different context:
>>> data = [1, 2, 3]
>>> result = powers(data)
>>> print result
>>> print(result)
[1, 8, 27]
When we give ``powers`` the same inputs we receive different outputs; how could
Expand Down

0 comments on commit fa19825

Please sign in to comment.