FranklinChen / project-euler-python

Solutions to Project Euler using Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python solutions to Project Euler problems

This also serves as an example of how to set up a Python package using distribute.

I used this helpful Python packaging tutorial as a guide, and also I made use of this guide to repository structure in order to separate the tests from the main package.

To run tests

I recommend using nose for testing.

$ python setup.py nosetests

To install the package project_euler

$ python setup.py install

To run an answer

Answer scripts are installed where distribute installs them (for me it is /usr/local/share/python). If you have the script directory in your PATH, you should be able to run

$ project_euler_answer1

About

Solutions to Project Euler using Python


Languages

Language:Python 100.0%