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

103 Mentors

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

53,153 Students

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

117 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 Samuel Walladge

Samuel Walladge Website

Python was the first language I learnt when I started programming several years ago. Since then I have used it extensively for uni projects, web, scripting, and pretty much everything else. Excited to be able to help mentor new pythonistas!
Avatar of Luis San Martin

Luis San Martin https://sanmartin.io

Hi there! I'm a SRE with 10+ years on Linux/Open Source and want to give back all the knowledge I have :)
Avatar of Doug Whitley

Doug Whitley https://github.com/TsebMagi

I've been using C# for personal projects in Unity for a little over a year and love the balance it strikes between readiblity and functionality.
Avatar of Nate Clark

Nate Clark https://github.com/natec425

I have been programming in Python for the last 7 years and teaching it to beginners for the last 4. I don't claim to know much, but I hope to be a useful person to bounce ideas off of. Thanks for reading!
Avatar of Periklis Gkolias

Periklis Gkolias My blog

I am a fullstack software engineer specialising in python and javascript related technologies and a huge enthusiast of the deep learning revolution. My aim is to help people, as I would like to have been offered help when I was doing my first steps in the field.
Avatar of Sandor Dargo

Sandor Dargo Sandor Dargo's Blog

I like Python because it's so simple to understand it and it can read like well-written prose. Besides it's a real swiss army knife, you can use it for almost everything. Yet, it takes some time to learn writing pythonic code, but I'm happy to help you with that!
Fun. Challenging. Interesting

Community-sourced Python exercises

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

Bowling
medium
classes
exception handling
logic
Hangman
medium
strings
Phone Number
easy
conditionals
pattern matching
regular expressions
strings
Pangram
easy
algorithms
conditionals
filtering
logic
loops
strings
Gigasecond
easy
dates
time
Food Chain
medium
algorithms
conditionals
loops
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 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.
Avatar of Michael Morehouse

Michael Morehouse My Techie Blog

Although Python wasn't my first -- and won't be my last -- programming language, it remains my favorite for introducing others to the joys, the pains, the infrequent ecstacies, and the occasional terrors of life before the REPL.

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

Join the Python Track