A collection of Python coding challenges with test-driven development.
Each challenge is organized in its own directory with the following structure:
solution.py: Write your solution heretest_*.py: Contains challenge description and tests
-
Install dependencies:
pip install -r requirements.txt
-
Run a specific challenge:
python run_challenge.py easy/sum
- Create a new directory under the appropriate difficulty level
- Add
solution.pywith the function stub - Add
test_*.pywith challenge description and tests
- Add a watch process
- Add helpful errors when tests fail
- Add a lot more challenges