Skip to content

Commit cae9b8c

Browse files
committed
Update map_filter.rst
1 parent 7c99fa5 commit cae9b8c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

map_filter.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,14 @@ a list and returning the result. For example, if you wanted to compute
8484
the product of a list of integers.
8585

8686
So the normal way you might go about doing this task in python us using
87-
a basic for loop.
87+
a basic for loop:
88+
8889

8990
.. code:: python
9091
product = 1
9192
list = [1, 2, 3, 4]
9293
for num in list:
93-
product = product * list
94+
product = product * num
9495
9596
# product = 24
9697

0 commit comments

Comments
 (0)