The official python tutorial
FAQs
Which IDE to use? List of python IDEs and their features
Related Subreddits
r/python — News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python.
and more: r/flask r/madeinpython r/programming r/programmingbuddies
How to ask a question?
Commenting
Try to guide OP to a solution instead of providing one directly.
Provide links to related resources.
Answer the question and highlight side-issues if any exist.
Don't "answer and run", be prepared to respond to follow up questions.
Proofread your answers for clarity and correctness.
Be polite.
Posting
Posts to this subreddit must be requests for help learning python. They do not have to be code-specific, but do have to be about using and learning python.
If asking a question about code Format your code for reddit or use a site like github or pastebin. Your code is hard to read and test otherwise.
Be sure to try out suggestions you get and report back.
SSCCE For code questions, keep your code Short, Self Contained, Correct (Compilable) and provide Example
If you see an error, include the error you get when running any code you may be asking about.
Ensure your example is correct. Either the example compiles cleanly, or causes the exact error message about which you want help.
Avoid posting a lot of code in your posts.
Posting homework assignments is not prohibited if you show that you tried to solve it yourself.
Docs
Bookmark these!
Cheat sheets from Eric Matthes, author of Python Crash Course
Cheat sheets from Datacamp for data science libraries (NumPy, Pandas, etc.)
New to Python?
…but not to programming in general?
PythonTutor.com uses animated stepping and data structure visualization
Raymond Hettinger - Beyond PEP 8 -- Best practices for beautiful intelligible code - PyCon 2015
Tiny Python Projects - Learn Python and test-driven development by programming games and puzzles - with videos
Ultimate Python Study Guide - Ultimate Python study guide for newcomers and professionals alike.
New to programming?
Try one of these online books or check out our page of all other books sorted by difficulty and with descriptions!
Python Like You Mean It - Essentials of Python/NumPy for STEM users
Full Stack Python for learning about Python web development
The Hitchhiker’s Guide to Python! (best-practice handbook to the installation, configuration, and usage of Python)
Program Arcade Games with Python and Pygame (Python 3. Includes video as well.)
TokyoEdtech's Introduction to Python for Beginners- PDF A free e-book aimed at beginners.
Videos/Lectures
Harvard: CS50's Introduction to Programming with Python Free and very popular course, well structured lessons and problem sets, as well as a free certificate.
MOOC Python Programming 2026 - Top Python course from University of Helsinki - Free and very practice oriented.
University of Essex: Short Course Python Preparation Programme - A free course for beginner programmers. 250 taught programming questions and course certificate.
PythonByteSize - Video tutorials (+50 hours), alongside one-minute video shorts.
Python for Data Science - Free course on the basics of Python for people interested in data science, from IBM's Applied Data Science with Python.
MongoDB Quickstart with Python a 2.5-hour free course.
Python for everyone Free course and book developed by Dr. Chuck (https://www.dr-chuck.com/)
OpenEDG A variety set of classes with certificates. About the OpenEDG Python Institute
TokyoEdtech's Basic Python 3 for Beginners Learn the basics of Python in about an hour.
Paid courses
Python for Data Science: From Zero to Data Analysis - A beginner-friendly course about practical data science with Pandas, NumPy, Matplotlib, Seaborn, Plotly, and PyTorch.
Python Fundamentals - Pluralsight - A free 1-week pass is available from /u/norwegianwood on request.
PyTorch, Shiny, Pandas & More-Build Interactive Data Science - A short course on creating interactive dashboards with Shiny
Hands-On Calculus with Python for Data Science & ML - Covers SymPy and key calculus topics, including derivatives, gradients, Newton’s Method, and Gradient Descent.
A Gentle Introduction to Mathematics for Machine Learning - Introduction to linear algebra, linear models, optimization, and probability.
Tools For Learning Python
Project Euler(Language Agnostic)
PyQuest a quick reference and learning guide
Flex your coding skill with some practice problems!
Try Python in your browser
PixelPAD - Python in the browser with Game library, similar to Pygame
PythonAnywhere — Python in your browser (also hosting Python projects)
ideone — online compiler and debugging tool
Python Tutor — Visualize what the code does line by line.
Starting in the open source world
Some websites where you can start fixing bugs and such for open source projects
Other resources
Python 2 (archive)
Python 2 is no longer supported. This section archives resources related to Python 2.
New to Python? (Python 2)
New to programming? (Python 2)
Introduction to Python (Python 2 and 3)
How to Think Like a Computer Scientist (Python 2)
Think Python (E-reader version) (Python 2)
Videos / Lectures (Python 2)
MIT OCW: Introduction to Computer Science and Programming (Py2)
Google's Python Class (Py2)
PyCon 2013: A hands-on introduction to Python for beginning programmers (Py2)
Tools for Learning Python 2
CodesDope (Py2, Py3)
Codecademy (Py2)
MIT OCW: Assignments (Py2)
New Coder projects (Py2)
PySchools (Py2)
Try Python 2 in your browser
Skulpt (Py2) — uses WebGL for graphics
PythonAnywhere (Py2 & Py3) — Python in your browser (also hosting Python projects)
ideone (Py2 & Py3) — online compiler and debugging tool
Python Tutor (Py2 & Py3) — Visualize what the code does line by line.
repl.it (Py2 & Py3)
Misc.
Things created by the userbase
| Name | Desc | Status |
|---|---|---|
| Undecided | Game(RPG) | In Planning |
| Chess Tutorial | Chess tutorial by u/rainy-day-week | Up |
Subreddit CSS and other assets can be found on github here: Subreddit assets