Quiz: How to Run a Python Script
Test your understanding of how the Python interpreter works and how to run scripts from the command line, interactive mode, file managers, and IDEs.
Curated development tutorials from top sources. Filter by language.
Test your understanding of how the Python interpreter works and how to run scripts from the command line, interactive mode, file managers, and IDEs.
How Python's metaclasses work as an OOP concept, what they are good for—and why you might want to avoid them in your own programs.
The Python GIL is a mutex that lets only one thread control the interpreter at a time. Learn how it shapes your program's performance.
Real Python's weekly AI news for October 17–23, 2026, explained in plain language: a booby-trapped Python AI tool, a PHP security fix, and PyTorch on
Learn to work effectively with Python sets: define set objects, explore the supported operations, and know when sets fit your code.
Python f-strings give you a readable, concise way to interpolate and format strings, and they beat .format() and the % operator on speed.
Use Python's property() to add managed attributes to your classes, with validation, computed values, and caching, without breaking your API.
Build and deploy a serverless Python app with AWS Chalice, a microframework that ships your code to AWS Lambda and scales it for you.
Build a Django example project step by step. You'll create a portfolio app and learn about models, views, templates, and the admin.
Follow this NumPy tutorial to learn how to create and manipulate arrays in Python and take your first steps into data science.
In this quiz, you'll test your understanding of Django, a fully featured Python web framework. By working through this quiz, you'll revisit the steps
Test your understanding of Pydantic models, fields, validators, and settings management, and see how well you can validate data in Python.
How is the Python ecosystem adapting to the modern landscape of software security and supply chain defense? This week on the show, we sit down with Se
Dig into the Python program structure: the syntactic elements that make up statements, and how statements group into larger blocks.
This article is a beginner-to-intermediate-level walkthrough on Python and matplotlib that mixes theory with example.
Learn how Python handles CSV files: read, write, and parse them with the built-in csv library, and see how pandas does the same job.
Master Python's itertools module by building practical examples with batched(), pairwise(), groupby(), and more, and learn to think iteratively.
Learn Python supply chain security as AI speeds up attacks: what the LiteLLM backdoor teaches, how to check your setup, and habits that last.
Install and configure Emacs for Python development, then write, run, test, and debug your Python code without leaving the editor.
Python operators are the symbols and keywords that build expressions. Learn how to combine them with objects to compute real results.