Skip to content

[New Concept Exercise] : sequences and common sequence operations #2290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DavidGerva opened this issue May 3, 2020 · 3 comments
Closed
Assignees
Labels
claimed 🐾 For new exercises being written by contributors and maintainers. maintainer action required❕ A maintainer needs to take action on this. new exercise ✨ x:size/large Large amount of work x:status/claimed Someone is working on this issue

Comments

@DavidGerva
Copy link
Contributor

DavidGerva commented May 3, 2020

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

  • what is a slice (a copy of a selected subsection).
  • understand slice syntax (e.g. [start : stop : step]), and how Python evaluates slices.
  • understand indexing from the left and the right, and how this applies to slicing.
  • understand which built-in data types & data structures can be sliced, and which cannot. (strings can, numbers cannot).
  • perform slice operations on strings.
  • perform a slice operations on sequence types (lists, sets, & tuples).
  • copy an object via the "full" slice [:]
  • reverse an object order via the "reverse slice" [::-1]

Out of scope

  • slice assignment
  • slice() function, and how it differs from [ ] notation
  • slice objects
  • itertools.islice()

Concepts

  • slicing
  • indexing

Prerequisites

  • basics
  • iteration
  • lists
  • list-methods
  • sets
  • strings
  • tuples

Resources to refer to

Hints

  • TBD?

After

  • the slice() function

Representer

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.

@BethanyG BethanyG self-assigned this May 15, 2020
@BethanyG BethanyG changed the title [Python] Implement new Concept Exercise: slicing [V3] Implement new Concept Exercise: slicing Jan 28, 2021
@BethanyG BethanyG transferred this issue from exercism/v3 Jan 28, 2021
@BethanyG BethanyG added this to the First 22 Concept Exercises Due for V3 milestone Jan 29, 2021
@github-actions
Copy link
Contributor

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.

@BethanyG BethanyG changed the title [V3] Implement new Concept Exercise: slicing [V3] Implement new Concept Exercise: sequences and common sequence operations Mar 1, 2021
@BethanyG BethanyG modified the milestones: First 22 Concept Exercises Due for V3, New V3 Concept Exercises Mar 31, 2021
@BethanyG BethanyG modified the milestones: New V3 Concept Exercises, V3 Concept Exercises for Beta May 21, 2021
@BethanyG BethanyG changed the title [V3] Implement new Concept Exercise: sequences and common sequence operations [New Concept Exercise] : sequences and common sequence operations Jun 16, 2021
@BethanyG BethanyG added x:module/concept-exercise Work on Concept Exercises x:status/claimed Someone is working on this issue x:size/large Large amount of work claimed 🐾 For new exercises being written by contributors and maintainers. new exercise ✨ and removed x:module/concept-exercise Work on Concept Exercises labels Jun 16, 2021
@BethanyG BethanyG removed this from the V3 Concept Exercises for Beta milestone Jun 14, 2022
@github-actions
Copy link
Contributor

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.

@BethanyG BethanyG added maintainer action required❕ A maintainer needs to take action on this. and removed abandoned 🏚 labels Sep 13, 2022
@BethanyG
Copy link
Member

Flagging as close and reopen with new issue template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
claimed 🐾 For new exercises being written by contributors and maintainers. maintainer action required❕ A maintainer needs to take action on this. new exercise ✨ x:size/large Large amount of work x:status/claimed Someone is working on this issue
Projects
None yet
Development

No branches or pull requests

2 participants