Skip to content

Commit 76ae54c

Browse files
authored
Update 04-lists.md
Change the prime list in the Heterogeneous Lists section. 1 has been taken out of the prime list because it is not a prime number.
1 parent ab66e3e commit 76ae54c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_episodes/04-lists.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ same list. If all we want to do is copy a (simple) list, we can again use the `l
292292
do not modify a list we did not mean to:
293293
294294
~~~
295-
odds = [1, 3, 5, 7]
295+
odds = [3, 5, 7]
296296
primes = list(odds)
297297
primes.append(2)
298298
print('primes:', primes)
@@ -301,8 +301,8 @@ print('odds:', odds)
301301
{: .language-python}
302302
303303
~~~
304-
primes: [1, 3, 5, 7, 2]
305-
odds: [1, 3, 5, 7]
304+
primes: [3, 5, 7, 2]
305+
odds: [3, 5, 7]
306306
~~~
307307
{: .output}
308308

0 commit comments

Comments
 (0)