File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ surveys_df[0:3]
188188> ~~~
189189> {: .output}
190190>
191- > Print the values `A` through `E`:
191+ > Return the values `A` through `E`:
192192>
193193> ~~~
194194> x[0:5]
@@ -200,7 +200,7 @@ surveys_df[0:3]
200200> ~~~
201201> {: .output}
202202>
203- > Print the list starting at `E` through to the end:
203+ > Return the list starting at `E` through to the end:
204204>
205205> ~~~
206206> x[4:]
@@ -212,7 +212,7 @@ surveys_df[0:3]
212212> ~~~
213213> {: .output}
214214>
215- > Print the first 4 letters in the list
215+ > Return the first 4 letters in the list
216216> (Note that this is the same as `x[0:4]`):
217217>
218218> ~~~
@@ -225,7 +225,7 @@ surveys_df[0:3]
225225> ~~~
226226> {: .output}
227227>
228- > Print the _last_ letter in the list:
228+ > Return the _last_ letter in the list:
229229>
230230> ~~~
231231> x[-1]
@@ -239,7 +239,7 @@ surveys_df[0:3]
239239>
240240> The slice syntax includes a third component called the _step_. Where
241241> `x[start:stop:step]` returns the list from the `start` index for every `step` up to the index
242- > before `stop`. The example below prints every third letter in the list starting from `0`
242+ > before `stop`. The example below gives us every third letter in the list starting from `0`
243243> all the way to the end.
244244>
245245> ~~~
You can’t perform that action at this time.
0 commit comments