Python tutorials

Quiz: Python 3.14: Cool New Features for You to Try

Interactive Quiz ⋅ 11 QuestionsBy Bartosz Zaczyński Share In this quiz, you’ll test your understanding of Python 3.14: Cool New Features for You to Try. By working through this quiz, you’ll review the key updates and improvements in this version of Python. The quiz contains 11 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck! Related […]

Read more

Python 3.14: Cool New Features for You to Try

Watch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: What’s New in Python 3.14 Python 3.14 was released on October 7, 2025. While many of its biggest changes happen under the hood, there are practical improvements you’ll notice right away. This version sharpens the language’s tools, boosts ergonomics, and opens doors to new capabilities without forcing you to rewrite everything. If you want […]

Read more

What’s New in Python 3.14

Python 3.14 was published on October 7, 2025. While many of its biggest changes happen under the hood, there are practical improvements you’ll notice right away. This version sharpens the language’s tools, boosts ergonomics, and opens doors to new capabilities without forcing you to rewrite everything. In this video course, you’ll explore features like: A smarter, more colorful REPL experience Error messages that guide you toward fixes Safer hooks for live debugging Template strings (t-strings) for controlled interpolation Deferred annotation […]

Read more

It’s Almost Time for Python 3.14 and Other Python News

Python 3.14 nears release with new features in sight, and Django 6.0 alpha hints at what’s next for the web framework. Several PEPs have landed, including improvements to type annotations and support for the free-threaded Python effort. Plus, the Python Software Foundation announced new board members, while Real Python dropped a bundle of fresh tutorials and updates. Read on to learn what’s new in the world of Python this month! Python 3.14 Reaches Release Candidate 3 Python 3.14.0rc3 was announced […]

Read more

Python MCP Server: Connect LLMs to Your Data

The Model Context Protocol (MCP) is a new open protocol that allows AI models to interact with external systems in a standardized, extensible way. In this tutorial, you’ll install MCP, explore its client-server architecture, and work with its core concepts: prompts, resources, and tools. You’ll then build and test a Python MCP server that queries e-commerce data and integrate it with an AI agent in Cursor to see real tool calls in action. By the end of this tutorial, you’ll […]

Read more

Quiz: Python MCP Server: Connect LLMs to Your Data

Interactive Quiz ⋅ 11 QuestionsBy Martin Breuss Share This quiz helps you review the core ideas behind the Model Context Protocol (MCP). You will practice how MCP connects large language models with external systems, how to install it, and what role prompts, resources, and tools play. You’ll also revisit best practices for defining tools, explore client-server setups like Cursor, and check your understanding of transports and testing. For a full walkthrough, see Python MCP Server: Connect LLMs to Your Data. […]

Read more

Quiz: Python 3.14 Preview: Better Syntax Error Messages

Interactive Quiz ⋅ 5 QuestionsBy Philipp Acsany Share This quiz helps you get familiar with the upgraded error messages in Python 3.14. You’ll review new keyword typo suggestions, improved math errors, string prefix feedback, and more. Put your understanding to the test and discover how Python’s improved error messages can help you debug code faster. The quiz contains 5 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, […]

Read more

Python 3.14 Preview: Better Syntax Error Messages

Python 3.14 brings a fresh batch of improvements to error messages that’ll make debugging feel less like detective work and more like having a helpful colleague point out exactly what went wrong. These refinements build on the clearer tracebacks introduced in recent releases and focus on the mistakes Python programmers make most often. By the end of this tutorial, you’ll understand that: Python 3.14’s improved error messages help you debug code more efficiently. There are ten error message enhancements in […]

Read more

Quiz: Modern Python Linting With Ruff

Interactive Quiz ⋅ 9 QuestionsBy Rodrigo Girão Serrão Share Sharpen your code quality workflow with Ruff. In this quiz, you’ll review installation checks, continuous linting, and code formatting. You’ll also revisit selecting rule codes, reading rule docs, applying safe fixes, and configuring TOML files. For a refresher, see Modern Python Linting With Ruff. The quiz contains 9 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive […]

Read more

Modern Python Linting With Ruff

Linting is essential to writing clean and readable code that you can share with others. A linter, like Ruff, is a tool that analyzes your code and looks for errors, stylistic issues, and suspicious constructs. Linting allows you to address issues and improve your code quality before you commit your code and share it with others. Ruff is a modern linter that’s extremely fast and has a simple interface, making it straightforward to use. It also aims to be a […]

Read more
1 2 3 202