Python

Join the Python Track
Python is a clear and powerful object-oriented programming language with an elegant and easy-to-read syntax. It is ideal for prototyping and ad-hoc tasks, but also sees wide use in scientific computing, web development, and automation.
Join the Python Track
Track mentors

74 Mentors

Our mentors are friendly, experienced Python developers who will help teach you new techniques and tricks.
Track students

32,742 Students

Join thousands of students who have enjoyed learning and improving their skills by taking this track.
Track exercises

114 Exercises

Hundreds of hours have gone into making these exercises fun, useful, and challenging to help you enjoy learning.

About Python

prices = {'apple': 0.75, 'egg': 0.50}
cart = {
  'apple': 1,
  'egg': 6
}

bill = sum(prices[item] * cart[item]
           for item in cart)

print(f'I have to pay {bill:.2f}')

Python is a strong language for beginners.

There are many resources available for programmers of all levels, the code is highly readable, and in many cases phrases are comparable to those in the English language.

Code can be written and executed from the command line, in an interactive IPython session, or in a Jupyter (IPython) notebook.

The most common form of Python is compiled in C; this is often invisible to the beginning programmer, but if there are uses for which exceptionally fast implementation is needed then C extensions can be written to optimize Python execution.

Python is used extensively in scientific computing, finance, games, networking, internet development, and in assembling pipelines of other programs.

Python was started by Guido van Rossum in 1989; its name is an homage to the comedy troupe Monty Python.

Python 2 is used widely but support may end by 2020; it is highly recommended that beginners use Python 3 (they are similar, but users will encounter some differences).

Python development is shepherded by The Python Software Foundation and there are active community-based user groups worldwide.

Join the Python track

I really like the ability to look at other people's solutions.

I'm working through the F# and Python tracks at the moment. Really like the ability to look at other people's solutions. I've had some helpful comments from others too.

Relaxed. Encouraging. Supportive.

Meet the Python Track mentors

Once you join the Python language track, you will receive support and feedback from our team of mentors. Here are the bios of a few of the mentors of this track.

Avatar of Brian Beach

Brian Beach

I've been coding in Python off and on for 20 years. It's still my favorite language for many tasks.
Avatar of David Carroll

David Carroll https://github.com/axesilo

My primary professional language is Python, which I like for its flexibility and expressiveness, but I also enjoy using Rust because of its power and high-quality tooling. I'm a former CS professor.
Avatar of James Haney

James Haney https://github.com/jrhaneydata

I'm a data scientist who's been using Python at work for 3-4 years. I love how readable and versatile it is.
Avatar of David Jones

David Jones Website

Love python, easy to read and fun to write
Avatar of Tim Hawes

Tim Hawes https://github.com/timotheosh

I have 12 years experience programming in Python, and am eager to help budding Pythonistas.
Avatar of Sebastian Borza

Sebastian Borza https://github.com/sebito91

I'm a Canadian (based in Chicago) freelance golang, C and python developer working on projects within the gaming, finance and data-science worlds respectively. My favorite freetime task is coding challenges and I'm more than happy to help people talk through solutions!
Fun. Challenging. Interesting

Community-sourced Python exercises

These are a few of the 114 exercises on the Python track. You can see all the exercises here.

Poker

easy
conditionals
lists
loops
parsing

Spiral Matrix

easy
algorithms
control flow
lists

Rotational Cipher

easy
logic
loops
strings

High Scores

easy
control flow (if else statements)
sequences
text formatting

Flatten Array

easy
algorithms
lists
recursion
transforming

ETL

easy
loops
maps
transforming
Passionate. Knowledgeable. Creative.

Meet the Python Track maintainers

The Python Maintainers are the brains behind the Python Track. They spend their spare time creating interesting and challenging exercises that we can all learn from. We are incredibly grateful for their hard work. Here are the bios of a few of the maintainers of this track.

Avatar of Nathan Parsons

Nathan Parsons

Python fits with how I think and allows me to quickly write powerful, maintainable, and extensible code.
Avatar of Corey McCandless

Corey McCandless

Big fan of homemade bread and reusable code.
Avatar of Dog

Dog

I can not only fetch JSON, but parse it too.

Get started with the Python track. As with everything on Exercism, it's 100% free!

Join the Python Track