Real Python
Online/Digital
At Real Python, you'll learn all things Python from the ground up. Our tutorials, books, and video courses are created, curated, and vetted by a community of expert Pythonistas. With new content published weekly, custom Python learning paths, and interactive code challenges, you'll always find something to boost your skills. Source
Actions
Media Outlet details
| Scope | Local |
|---|---|
| Language | English |
| Country | Canada |
|
Similarweb UVM |
Request pricing |
|
Comscore UVM |
Request pricing |
Recent Articles
Search ArticlesHow to Debug Python Code With an AI Agent
AI debugging is fixing broken code by pairing with an AI coding agent instead of hunting down bugs on your own. In this tutorial, you’ll debug Python code with an AI agent by reproducing a bug with a failing test, giving your agent the context it needs, and verifying the fix that gets your program running again. Most developers seek what’s called a flow state when building programs or fixing code. This is a state of high focus. However, it can occasionally be interrupted by bugs.
How to Debug Python Code With an AI Agent Quiz
Interactive Quiz ⋅ 8 Questions By Joseph Peart In this quiz, you’ll test your understanding of How to Debug Python Code With an AI Agent. By working through this quiz, you’ll revisit how to set up a workspace for AI debugging, reproduce a bug with a failing test, hand your agent the context it needs, and verify a fix before you trust it. Along the way, you’ll also think about what makes a bug report specific enough to act on and how to spot a fix that only looks right.
How to Publish an Open-Source Python Package to PyPI Quiz
Interactive Quiz ⋅ 12 Questions By Joseph Peart In this quiz, you’ll test your understanding of How to Publish an Open-Source Python Package to PyPI. By working through this quiz, you’ll revisit how to name and configure a package with pyproject.toml, specify dependencies, version your releases, build source archives and wheels, and upload the result to PyPI. The quiz contains 12 questions and there is no time limit. You’ll get 1 point for each correct answer.
documentation | Python Best Practices – Real Python
Good documentation can turn a project into something that people can use, understand, and maintain. It lowers the barrier for new contributors, clarifies how and why public APIs behave the way they do, and makes it easier to track changes as your project evolves. Without good documentation, even well-written code can quickly become a game of guesswork, scaring away users and contributors.
How to Integrate OpenTelemetry With a FastAPI App
Adding observability to your applications is crucial for diagnosing issues in production. In this tutorial, you’ll learn how to integrate OpenTelemetry—an open-source observability framework—into a FastAPI application.
How to Integrate OpenTelemetry With a FastAPI App Quiz
Interactive Quiz ⋅ 6 Questions By Joseph Peart In this quiz, you’ll test your understanding of How to Integrate OpenTelemetry With a FastAPI App. By working through this quiz, you’ll revisit how to instrument a FastAPI application with OpenTelemetry, create custom spans for your business logic, correlate your logs with traces, and configure sampling to manage overhead. Adding observability to your applications helps you diagnose issues in production and understand exactly where errors happen.
Coding With OpenCode: AI-Assisted Python
OpenCode is an open-source AI coding agent that runs in your terminal and lets you analyze and refactor a Python project through conversational commands. In this video course, you’ll install it on your system, set it up with a free Google Gemini API key, and learn the basics of how to use it in your daily programming work. OpenCode works as a conversational assistant you explicitly direct. Ask it to analyze functions, refactor code, or explain issues.
Coding With OpenCode: AI-Assisted Python Quiz
Interactive Quiz ⋅ 8 Questions By Joseph Peart In this quiz, you’ll test your understanding of the concepts covered in Coding With OpenCode: AI-Assisted Python. By working through this quiz, you’ll revisit how to install OpenCode, connect it to a free Google Gemini API key, and use Plan and Build modes to analyze and refactor a Python project without leaving your terminal. You’ll also check what you know about OpenCode sessions, the command palette, and switching between AI models on the fly.
Modern Object-Oriented Python: Write Clean, Pythonic Code With OOP
You can write Python code that works. But there’s a corner of the language you keep walking around… As your programs grow, the design questions get harder to avoid: “Should this be a class or a function?” “Where should this state live?” “When does inheritance help, and when does it make the design worse?” “What are __repr__, @property, @classmethod, and the sequence protocol actually for?” You’re not a beginner.
How to Use Type Hints for Multiple Return Types in Python Quiz
Interactive Quiz ⋅ 9 Questions By Joseph Peart In this quiz, you’ll test your understanding of How to Use Type Hints for Multiple Return Types in Python. By working through this quiz, you’ll revisit how to annotate a function that returns one value of alternative types, and how to describe several pieces of data at once with a tuple.