Skip to content

Commit c307a2a

Browse files
authored
Always assign new list in examples.
1 parent 828ec62 commit c307a2a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

python/lesson3/tutorial.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,18 @@ for a more complete reference:
7474
>>> places_to_visit
7575
['Mexico', 'Portugal', 'Kenya', 'Nepal', 'New Zealand']
7676

77-
>>> places_to_visit
78-
['Mexico', 'Portugal', 'Kenya', 'Nepal', 'New Zealand']
77+
>>> places_to_visit = ['Mexico', 'Portugal', 'Kenya', 'Nepal', 'New Zealand']
7978
>>> places_to_visit[1] = "Peru"
8079
>>> places_to_visit
8180
['Mexico', 'Peru', 'Kenya', 'Nepal', 'New Zealand']
8281

83-
>>> places_to_visit
84-
['Mexico', 'Portugal', 'Kenya', 'Nepal', 'New Zealand']
82+
>>> places_to_visit = ['Mexico', 'Portugal', 'Kenya', 'Nepal', 'New Zealand']
8583
>>> places_to_visit.pop()
8684
'New Zealand'
8785
>>> places_to_visit
8886
['Mexico', 'Portugal', 'Kenya', 'Nepal']
8987

90-
>>> places_to_visit
91-
['Mexico', 'Portugal', 'Kenya', 'Nepal', 'New Zealand']
88+
>>> places_to_visit = ['Mexico', 'Portugal', 'Kenya', 'Nepal', 'New Zealand']
9289
>>> places_to_visit.append("Colombia")
9390
>>> places_to_visit
9491
['Mexico', 'Portugal', 'Kenya', 'Nepal', 'New Zealand', 'Colombia']

0 commit comments

Comments
 (0)