Closed DavidGerva closed 2 years ago
This issue has been automatically marked as abandoned
because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as abandoned 🏚
because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Flagging as close and reopen with new issue template.
Note: this issue was ported from the working [V3] repo, and needs to be re-done.
This issue describes how to implement the
slicing
concept exercise for the Python track.Getting started
Please please please read the docs before starting. Posting PRs without reading these docs will be a lot more frustrating for you during the review cycle, and exhaust Exercism's maintainers' time. So, before diving into the implementation, please read up on the following documents:
Goal
The goal of this exercise is to teach the student about the
slicing
operation in Python and how it applies to various data types.Learning objectives
[start : stop : step]
), and how Python evaluates slices.lists
,sets
, &tuples
).[:]
[::-1]
Out of scope
slice()
function, and how it differs from[ ]
notationslice
objectsitertools.islice()
Concepts
Prerequisites
basics
iteration
lists
list-methods
sets
strings
tuples
Resources to refer to
Hints
After
slice()
functionRepresenter
No changes required.
Analyzer
No changes required.
Implementing
Tests should be written using unittest.TestCase and the test file named slicing_test.py.
Help
If you have any questions while implementing the exercise, please post the questions as comments in this issue.