We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3f7a120 + 9f73e6d commit 35b3ccbCopy full SHA for 35b3ccb
python/lesson3/tutorial.md
@@ -112,10 +112,10 @@ the subset syntax:
112
You can do some interesting things with negative numbers too:
113
114
>>> print(places_to_visit[-3:4])
115
- ['Kenya', 'Nepal']
+ ['Portugal', 'Kenya', 'Nepal']
116
117
>>> print(places_to_visit[-3:])
118
- ['Kenya', 'Nepal', 'New Zealand']
119
120
...and as getting a subset returns a list itself, you can get a subset of a
121
subset:
0 commit comments