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

101 Mentors

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

49,995 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

The track also improved my ability to understand a problem and form questions around it

I started with the Python track which helped me to better understand the language's syntax and data structures. The track also improved my ability to understand a problem and form questions around it so that I was able to find or learn what I needed to in order to find a solution.

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 Joris Hoendervangers

Joris Hoendervangers https://github.com/hoenie-ams

Entrepreneur & Python enthusiast with a background in financial markets. Happy to help others to learn the language!
Avatar of Bahram Aghaei

Bahram Aghaei https://github.com/greatbahram/

I'm enthusiastic learner who is always looking for new projects and challenges and a huge Free Software enthusiast. Reach out if you want to talk about technology, life and sports.
Avatar of Leo Zhu

Leo Zhu https://github.com/leapoldzhu

Python is a beautiful language, which is different with C/C++, need more creativity to learn it. Don't feel sorry for what you don't know, just enjoy learning, enjoy Python, enjoy your life!
Avatar of Ashley Drake

Ashley Drake Personal Site

I enjoy writing Python at work and for personal projects; I love it's expressiveness and adaptability.
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 Jeff Parker

Jeff Parker Game face

I enjoy the simplicity of Python.
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.

Wordy
easy
logic
parsing
pattern matching
regular expressions
transforming
type conversion
Acronym
easy
regular expressions
strings
Simple Cipher
easy
cryptography
strings
text formatting
D&D Character
easy
randomness
integers
Circular Buffer
easy
algorithms
classes
conditionals
exception handling
queues
Saddle Points
easy
algorithms
conditionals
lists
loops
matrices
sets
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 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.
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