Use a simpler operator in the novice tutorial

Using a more explicit series of operations is simpler than using the
compound "=/" operator, which may be unfamilar to newer users of Python.
This commit is contained in:
Leena P
2015-07-11 18:23:49 -04:00
parent 45eecd09d2
commit 80629c34bb
+1 -1
View File
@@ -65,7 +65,7 @@ and know their location in the picture.
>>> for pixel in picture:
... if (pixel.red > 128) and (pixel.x < picture.width):
... pixel.red /= 2
... pixel.red = pixel.red / 2
Pictures know if they've been modified from the original file