Core Python Tutorials - Real Python
Core Python Language Tutorials
Mastering the Python programming language involves learning its syntax, data types, control structures, functions, and object-oriented features. Work with variables, loops, conditionals, and comprehensions to write expressive code. Python's clear syntax and powerful built-ins let you focus on solving problems rather than managing complexity.
Free Bonus: Python Cheat Sheet
Get a Python Cheat Sheet (PDF) and learn the basics of Python 3, like working with data types, dictionaries, lists, and Python functions:
Advanced Python features like decorators , generators, context managers, and metaclasses help you write more efficient code. Understand Python's data model, work with modules and packages, and handle errors with exceptions. Apply these core language skills to any Python domain, from web development and data science to automation and scripting.
Note: Browse all resources below, or commit to our structured progression of guided Python Learning Paths with progress tracking. Follow a curated collection of Learning Paths that walk you from beginner to advanced core Python topics to teach you to master the language.
Python is a high-level, interpreted programming language known for readability and versatility. Use it for web development, data analysis, machine learning, automation, scripting, and desktop applications. Major sites like Instagram, Spotify, and Netflix rely on Python.
Install Python from python.org or use an online environment. Learn basic syntax with variables, data types, loops, and functions. Practice with small programs, work through tutorials, and build simple projects. Start with the official Python tutorial or interactive platforms.
Python offers clear syntax, dynamic typing, automatic memory management, and a comprehensive standard library. It supports multiple programming paradigms including procedural, object-oriented, and functional. Python's interpreted nature enables rapid development and testing.
Python 2 reached end-of-life in 2020 and no longer receives updates. Python 3 has better Unicode support, improved syntax, and modern features. Use Python 3 for all new projects. Most libraries now support only Python 3.
Use pip to install packages with pip install package_name. Create virtual environments with venv to isolate project dependencies. List installed packages with pip list and save requirements with pip freeze > requirements.txt. Use pip install -r requirements.txt to install dependencies.
Not sure where to start? Mentor AI can put these tutorials in an order that fits what you already know.
Ask Mentor AI
- Pick a question and Mentor AI takes it from here.
- Suggest a learning order
- Is there a learning path for this?
- Ask something else...
Common Python Data Structures (Guide)
Dec 06, 2026 basics data-structures python stdlib
Python Timer Functions: Three Ways to Monitor Your Code
Dec 06, 2026 intermediate python stdlib
Variables in Python: Usage and Best Practices
Interacting With Python
Thinking Recursively in Python
Dec 06, 2026 intermediate python
Build a Hangman Game for the Command Line in Python
Dec 05, 2026 basics gamedev projects python
Bitwise Operators in Python
Dec 05, 2026 intermediate python
Python eval(): Evaluate Expressions Dynamically
Dec 05, 2026 intermediate python
Data Classes in Python (Guide)
Dec 05, 2026 intermediate python stdlib
Python's list Data Type: A Deep Dive With Examples
Dec 04, 2026 intermediate data-structures python
Python Scope and the LEGB Rule: Resolving Names in Your Code
Dec 04, 2026 intermediate python
Implementing Interfaces in Python: ABCs and Protocols
Python List Comprehension: Tutorial With Examples
Working With JSON Data in Python
Dec 04, 2026 intermediate python stdlib
Iterators and Iterables in Python: Run Efficient Iterations
Dec 03, 2026 intermediate python
Python Constants: Improve Your Code's Maintainability
Dec 03, 2026 intermediate python
Python's min() and max(): Find Smallest and Largest Values
Your Guide to the Python print() Function
Async Programming in Python: From Generators to asyncio
Dec 03, 2026 intermediate python
How to Iterate Through a Dictionary in Python
Dec 03, 2026 intermediate python
Basic Input and Output in Python
Python itertools By Example
Dec 03, 2026 advanced python stdlib
The Python heapq Module: Using Heaps and Priority Queues
Dec 02, 2026 intermediate data-structures python stdlib
Lists vs Tuples in Python
Using Python for Data Analysis
Dec 01, 2026 intermediate best-practices data-science python
What Are Python Asterisk and Slash Special Parameters For?
Nov 28, 2026 intermediate python
Python Timer Functions: Three Ways to Monitor Your Code
Nov 27, 2026 intermediate python stdlib
Conditional Statements in Python
Python Conditional Statements
How to Use any() in Python
Exploring the Python math Module
Nov 19, 2026 intermediate python stdlib
Nuitka: Compile Python Into a Standalone Executable
Nov 18, 2026 intermediate python tools
Nuitka: Compile Python Into a Standalone Executable
Nov 18, 2026 intermediate python tools
Python Bindings: Calling C or C++ From Python
Nov 17, 2026 advanced python tools
Understanding Python Namespace Packages
Working With JSON in Python
Nov 13, 2026 intermediate python
Learn With Mentor AI: Working Through a Coding Exercise
Learn With Mentor AI: Working Through a Coding Exercise
Memory Management in Python
Nov 08, 2026 intermediate python
Absolute vs Relative Imports in Python
Nov 07, 2026 intermediate best-practices python
Regular Expressions: Regexes in Python (Part 2)
Regular Expressions: Regexes in Python (Part 1)
LBYL vs EAFP: Preventing or Handling Errors in Python
Nov 06, 2026 intermediate best-practices python
Polars vs pandas: What's the Difference?
Nov 05, 2026 intermediate data-science python
Positron IDE: A Hands-on Python Tutorial
Nov 04, 2026 intermediate data-science python tools
Positron IDE: A Hands-on Python Tutorial
Nov 04, 2026 intermediate data-science python tools
Operator and Function Overloading in Custom Python Classes
Nov 01, 2026 intermediate python
Recursion in Python: An Introduction
Nov 01, 2026 intermediate algorithms python
Share Feedback