Skip to content

Commit 9f73e6d

Browse files
authored
fixed bug in subsets
1 parent 97072ce commit 9f73e6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/lesson3/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ the subset syntax:
112112
You can do some interesting things with negative numbers too:
113113

114114
>>> print(places_to_visit[-3:4])
115-
['Kenya', 'Nepal']
115+
['Portugal', 'Kenya', 'Nepal']
116116

117117
>>> print(places_to_visit[-3:])
118-
['Kenya', 'Nepal', 'New Zealand']
118+
['Portugal', 'Kenya', 'Nepal']
119119

120120
...and as getting a subset returns a list itself, you can get a subset of a
121121
subset:

0 commit comments

Comments
 (0)