Skip to content

Latest commit

 

History

History
48 lines (28 loc) · 1.19 KB

README.rst

File metadata and controls

48 lines (28 loc) · 1.19 KB

Python Koans

This is a fork of https://github.com/gregmalcolm/python_koans

Converted to run with a standard unit test runner, instead of a command line.

Python Koans is an interactive tutorial for learning the Python programming language by making tests pass.

Most tests are fixed by filling the missing parts of assert functions. Eg:

self.assertEqual(__, 1+2)

which can be fixed by replacing the __ part with the appropriate code:

self.assertEqual(3, 1+2)

Occasionally you will encounter some failing tests that are already filled out. In these cases you will need to finish implementing some code to progress. For example, there is an exercise for writing some code that will tell you if a triangle is equilateral, isosceles or scalene.

As well as being a great way to learn some Python, it is also a good way to get a taste of Test Driven Development (TDD).

Installing Python Koans

I suggest you use PyCharm, to run a test it's Control+Shift+R

Getting Started

Getting the Most From the Koans

  1. Get it to work.
  2. Reflect after each one.
  3. Modify & Experiment if you have questions.