exercism / v3

The work-in-progress project for developing v3 tracks
https://v3.exercism.io
Other
170 stars 163 forks source link

[Python] Implement new Concept Exercise: in #1431

Closed DavidGerva closed 4 years ago

DavidGerva commented 4 years ago

This issue describes how to implement the membership testing 'in' operator 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:

Please also watch the following video:

Goal

This concept exercise should convey a basic understanding of the in operator in Python to perform a membership testing.

Learning objectives

Out of scope

Concepts

Prerequisites

Resources to refer to

Hints

After

Nothing

Representer

No changes required.

Analyzer

No changes required.

Implementing

Tests should be written using unittest.TestCase and the test file named in_test.py.

Help

If you have any questions while implementing the exercise, please post the questions as comments in this issue.

Edits

aimorris commented 4 years ago

This should be in the collections concept exercise where you can explain everything about collections, including the in keyword.

BethanyG commented 4 years ago

Ooof. @DavidGerva -- After going back over this twice, I have to agree with @aimorris - we should do membership checking alongside each data structure, and not try to making it it's own exercise. Having checked tuples and lists -- we're already doing that, so I am going to close this as no longer relevant. Apologies for having you do extra work. 😦 .

BethanyG commented 4 years ago

If there is a strong disagreement, please re-open.

SleeplessByte commented 4 years ago

(I agree with the decision of adding in to each data structure's exercise.)