Custom Set

From Exercism PythonMITOriginal pagePython1 class period1 exercise40 graded tests

README.md

Custom Set

Instructions

Create a custom set type.

Sometimes it is necessary to define a custom data structure of some type, like a set. In this exercise you will define your own set. How it works internally doesn't matter, as long as it behaves like a set of unique elements.

Open the 01 folder and edit main.py. Run Tests checks it.

For teachers

Custom Set

Students solve Exercism's “Custom Set” Python exercise in CS Room, with Exercism's own tests.

  • Time: 1 class period
  • Tests: 40, set up for you when you import the lesson
  • Practices: class-inheritance, operator-overloading, rich-comparisons