Free Python tutorials
Learn Python the Practical Way
Working code and real output in every guide, from your first program to data analysis, machine learning and web apps.
- 2,300+free tutorials
- 70+ hoursfree video course
- 13× MVPMicrosoft award winner
- 100% freeno sign-up needed
Choose your path
What Do You Want to Learn?
Pick a topic and follow the tutorials in order, from the basics to real projects.
-
790+ tutorials
Python Programming
Core Python, from your first program to OOP
Explore Python tutorials -
420+ tutorials
Data Analysis & Visualization
Load, clean, analyze and chart data
Explore Pandas tutorials -
240+ tutorials
Machine Learning & AI
Build models with Scikit-learn and deep learning
Explore machine learning -
240+ tutorials
Python Web & GUI Apps
Build web apps and desktop programs
Explore Django tutorials -
480+ tutorials
Web Development
TypeScript, React and JavaScript for the front end
Explore web development -
New to Python?
Start Here
- Install & first program
- Data types & loops
- Functions & OOP
- Files & errors
- NumPy & Pandas
- Machine learning
Python fundamentals
Learn Python Basics, One Topic at a Time
Each topic page collects every tutorial on that subject, with examples you can copy and run.
Free video course
Python and Machine Learning Training Course
A structured video course that takes you from Python basics to machine learning models. Watch it in order or jump to the module you need.
- 40modules
- 70+hours of HD video
- 275+source code files
- $0no sign-up needed
Single-library courses: NumPy Pandas Matplotlib TensorFlow Django Tkinter
Python Guides on YouTube
Prefer Watching? Learn Python on YouTube
380+ free video tutorials that follow the written guides, with new videos every week.
Bookmark these
Essential Python Tutorials
- Python Hello World Program in VS CodeFirst steps
- Virtual Environments in Python (venv, pipenv, conda)Setup
- How to Check if a File Exists in PythonFiles
- How to Remove Duplicates from a ListLists
- How to Use Lambda Functions in PythonFunctions
- *args vs **kwargs in PythonFunctions
- How to Catch Multiple Exceptions in PythonErrors
- How to Convert a Python Dict to JSONDictionaries
- Read CSV Files Using PandasPandas
- How to Install Django (Windows, Mac & Linux)Django
Latest Python Tutorials
See all tutorials- Python compile() Function: A Practical Guide

- Python classmethod() Function: Complete Guide With Examples

- Python chr() Function: A Practical Guide With Examples

- Python callable() Function: Check Callables with Examples

- Python bytes() Function: A Practical Guide With Examples

- How to Build a JPG to PNG Converter Using Python

Free PDF · 112 pages
51 Python Programs to Practice
Useful Python programs with the complete code and output, from simple number and string programs to lists, files and more. Enter your email and the PDF goes straight to your inbox.
You’ll also get new Python tutorials by email. Unsubscribe anytime.Our editorial standards
How We Write Every Tutorial
Code we actually run
Every example is run in Python 3 before it’s published, and the real output is shown under the code.
Real-world examples
We use practical data such as sales, cities and employee records, not just
fooandbar.Kept up to date
1,080+ tutorials were reviewed and updated in the last 12 months as Python and its libraries changed.
Written by practitioners
Tutorials are written by working developers and reviewed by Bijay Kumar before they go live.




