---
title: "Python"
slug: "getting-started-with-python"
category: "languages"
ordinal: 11
---

## Installation

On the Mac, use Homebrew to install Python 2.x:

```bash
brew install python
```

If you're not using a mac, check out [python.org](https://wiki.python.org/moin/BeginnersGuide/Download) for instructions on downloading Python  and information on getting started.

## Running tests

Execute tests with:

```bash
$ python bob_test.py
```

---
title: "Python"
slug: "getting-started-with-python"
category: "languages"
ordinal: 11
---

If Python isn't already available on your system follow the instructions at [the Hitchhiker's Guide to Python](http://docs.python-guide.org/en/latest/#getting-started) to install Python on your computer.

Exercism currently supports Python3.4, Python3.3 and Python2.7.

## Running tests

Execute tests with:

```bash
$ cd exercism/project/directory/bob
$ python bob_test.py
```

## Formatting your code

There's a style guide called [PEP8](http://legacy.python.org/dev/peps/pep-0008/) that many Python projects adhere to.
[autopep8](https://github.com/hhatto/autopep8) is a command line tool that can point you at formatting problems in your code and automatically fix them.
Install it with [pip](http://pip.readthedocs.org/en/latest/):

```bash
$ pip install autopep8
```

## Recommended learning ressources

* [The Python Tutorial](https://docs.python.org/3/tutorial/)
* [Learn Python The Hard Way](http://learnpythonthehardway.org/book/)
* [Think Python](http://www.greenteapress.com/thinkpython/html/index.html)
* [The Python Library Reference](https://docs.python.org/3/library/index.html)

Enhance the Python help page
Enhance the Python help page