560 blogs tracked4,950 posts indexed

Python

We track 287 posts about Python from 34 engineering blogs. Most active: Real Python, Lerner Consulting Blog, Pamela Fox. Latest post: Oct 9, 2026.

Raw tag behind this topic:python

Companies writing about Python

Recent posts

  • Python for Loops: The Pythonic Way (opens on the source site)

    Real Python ·

    Python’s for loop allows you to iterate over the items in a collection, such as lists, tuples, strings, and dictionaries. The for loop syntax declares a loop variable that takes each item from the collection in each iteration. This loop is ideal for repeatedly executing a block of code on each item in the collection. You can also tweak for loops further with features like break, continue, and else. By the end of this tutorial, you’ll understand that: Python’s for loop iterates over items in a data collection, allowing you to execute code for each item. To iterate from 0 to 10, you use the for…

  • Namespaces in Python (opens on the source site)

    Real Python ·

    A Python namespace is a mapping from names to objects. It works like a dictionary where keys are object names and values are the objects themselves. Namespaces organize variables and functions in a dedicated space, allowing you to use multiple instances of the same name without conflict, as long as they’re in different namespaces. In this tutorial, you’ll explore the different types of namespaces in Python, including the built-in, global, local, and enclosing namespaces. You’ll also learn how they define the scope of names and influence name resolution in Python programs. By the end of this…

  • Quiz: How to Get a List of All Files in a Directory With Python (opens on the source site)

    Real Python ·

    In this quiz, you’ll test your understanding of How to Get a List of All Files in a Directory With Python. By working through this quiz, you’ll revisit how .iterdir() hands you the contents of a single directory, how glob patterns let .glob() and .rglob() filter results by name, and how .rglob() walks an entire directory tree. You’ll also check your understanding of filtering on attributes with comprehensions and filter(), and of skipping junk directories instead of listing every file inside them. [ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to…

  • Generate Images in Python With OpenAI's GPT Image API (opens on the source site)

    Real Python ·

    You’ve probably asked ChatGPT for a picture and watched one appear a few seconds later. The same models also sit behind OpenAI’s GPT Image API, so you can generate images from your own Python code instead of a chat window. You send a prompt, and image data comes back for your script to work with. By the end of this tutorial, you’ll understand that: You generate images from a text prompt by calling client.images.generate() with a GPT Image model like gpt-image-2.5-flare. Image data always arrives Base64-encoded in .b64_json, so you save it as a file with b64decode(). You choose your image’s…

  • Hugging Face Transformers: Leverage Open-Source AI in Python (opens on the source site)

    Real Python ·

    Transformers is a powerful Python library created by Hugging Face that allows you to download, manipulate, and run thousands of pretrained, open-source AI models. These models cover multiple tasks across modalities like natural language processing, computer vision, audio, and multimodal learning. Using pretrained open-source models can reduce costs, save the time needed to train models from scratch, and give you more control over the models you deploy. By the end of this tutorial, you’ll understand that: Hugging Face Transformers is a Python library for downloading and running pretrained…

  • Modern Web Automation With Python and Selenium (opens on the source site)

    Real Python ·

    Selenium is a web automation tool that allows you to use Python to programmatically interact with dynamic, JavaScript-generated web pages. Your Python Selenium code drives a real browser that you can instruct to fill out forms, click buttons, scrape dynamically generated data, or write automated tests for web applications. By implementing the Page Object Model (POM) design pattern, you can create clean and scalable automation scripts that are straightforward to read and maintain. By the end of this tutorial, you’ll understand that: Selenium allows you to launch browsers, visit URLs, and…

  • The Real Python Podcast – Episode #314: Codemoo: Demonstrating How Coding Agents Work (opens on the source site)

    Real Python ·

    How do you assemble the core pieces of a coding agent? How are developers defining projects through conversation and introspection? This week on the show, Geir Arne Hjelle returns to talk about his recent project to demonstrate how coding agents work under the hood. [ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to your inbox every couple of days. >> Click here to learn more and see examples ]

  • Quiz: Python Basics Exercises: Strings and String Methods (opens on the source site)

    Real Python ·

    In this quiz, you’ll test your understanding of Python Basics Exercises: Strings and String Methods. By working through this quiz, you’ll revisit how to slice strings, change their case, strip whitespace, check how a string starts, chain string methods together, and format values for printing. Working with text is one of the most common tasks in Python, so these skills will come up again and again. Take your time with each question, and read the explanations to reinforce what you’ve practiced. [ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to your…

  • Quiz: Generate Images in Python With OpenAI's GPT Image API (opens on the source site)

    Real Python ·

    In this quiz, you’ll test your understanding of Generate Images in Python With OpenAI’s GPT Image API. By working through this quiz, you’ll revisit how to install the OpenAI Python library, store your API key, generate images from text prompts with the GPT Image models, tune their size and quality, decode Base64 responses into PNG files, and edit an image with a follow-up prompt. [ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to your inbox every couple of days. >> Click here to learn more and see examples ]

  • Quiz: Python, Boto3, and AWS S3: Demystified (opens on the source site)

    Real Python ·

    In this quiz, you’ll test your understanding of Python, Boto3, and AWS S3: Demystified. By working through this quiz, you’ll revisit how to connect to S3 through a client or a resource, create buckets and objects, upload files, and configure storage classes and versioning. You’ll also check how to traverse your buckets, clear out a versioned bucket, and decide when to reach for Boto3 instead of an Infrastructure as Code tool. [ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to your inbox every couple of days. >> Click here to learn more and see…

  • Monte-Carlo simulations (opens on the source site)

    Eli Bendersky ·

    Monte Carlo simulations (or methods) is the technique of applying randomness and the Law of large numbers to the solution of various scientific and engineering problems. One of its first documented uses was by Stanislaw Ulam and John von Neumann for nuclear weapon simulations after WWII [1]. In this post I want to provide examples of some simple uses of Monte Carlo simulations. We'll start with the classical example of calculating the value of \pi by throwing darts. Estimating pi Suppose we take a square board and inscribe a quarter of a circle into it. We then proceed to throw darts at the…

  • Implementing a Modular Master-Agent Telemetry & Diagnostic Framework in Python: Prime-Sentinel Command (PSC) (opens on the source site)

    Stack Overflow ·

    Tags: python architecture oop design-patterns distributed-systems When engineering distributed monitoring agents or designing low-latency health-checking pipelines, separating centralized governance from autonomous edge execution is essential. I designed the Prime-Sentinel Command (PSC) architecture as an object-oriented master-agent pattern to coordinate edge diagnostic nodes (Sentinels) via a centralized orchestrator (Prime). Below is an architectural walkthrough and minimal reference implementation for engineers looking to build similar decoupled telemetry collectors. Many diagnostic…

  • The Best IDEs and Code Editors for Python (Guide) (opens on the source site)

    Real Python ·

    Choosing the best IDE or code editor for Python means weighing your skill level, project type, and workflow in a landscape that has changed dramatically in recent years. AI-first editors have arrived, and well-established tools have added AI integrations. This guide cuts through the noise and maps each tool to the situations where it fits best. The Python ecosystem now spans six categories of coding tools. You’ll walk through each one, learn what distinguishes the tools within each category, and end with a flowchart that maps common scenarios to concrete recommendations. Here’s a quick…

  • Quiz: The Best IDEs and Code Editors for Python (Guide) (opens on the source site)

    Real Python ·

    In this quiz, you’ll test your understanding of The Best IDEs and Code Editors for Python (Guide). By working through this quiz, you’ll revisit what separates a code editor from an IDE, which editor features catch problems before you run your code, and how beginner-friendly tools, full-featured IDEs, AI-first editors, notebook environments, terminal editors, and cloud workspaces each suit a different kind of work. [ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to your inbox every couple of days. >> Click here to learn more and see examples ]

  • Pandas groupby with two columns: Reshape results with unstack (opens on the source site)

    Lerner Consulting Blog ·

    Invoke “groupby” with two categorical columns in Python Pandas, and get a two-part multi-index: Turn into a data frame with unstack: The post Pandas groupby with two columns: Reshape results with unstack appeared first on LernerPython.

  • Exploring the MVC Pattern in Python (opens on the source site)

    Real Python ·

    If you’re curious about web development, then you’ve likely encountered the abbreviation MVC, which stands for Model-View-Controller. You may know that it’s a common design pattern that’s fundamental to many Python web frameworks and even desktop applications. But what exactly does it mean? If you’ve had a hard time wrapping your head around the concept, then this video course is for you. In this video course, you’ll: Learn what models, views, and controllers are conceptually Follow a user’s request through an MVC application from end to end Tie your conceptual understanding back to concrete…

  • Quiz: Using pandas and Python to Explore Your Dataset (opens on the source site)

    Real Python ·

    In this quiz, you’ll test your understanding of Using pandas and Python to Explore Your Dataset. By working through this quiz, you’ll revisit how to load a CSV file into a DataFrame, select and query your data with .loc and .iloc, group and aggregate values, handle missing data, and plot your results. The pandas library is one of the most popular tools for working with data in Python, so a solid foundation here will pay off. [ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to your inbox every couple of days. >> Click here to learn more and see…

  • Quiz: Exploring the MVC Pattern in Python (opens on the source site)

    Real Python ·

    In this quiz, you’ll test your understanding of Exploring the MVC Pattern in Python. By working through this quiz, you’ll revisit what models, views, and controllers are, how a user’s request travels through each of them, and how routes and templates tie the pattern together in a Flask app. Once the pattern clicks, you’ll have a mental map that carries over to Django and most other web frameworks you’ll meet. [ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to your inbox every couple of days. >> Click here to learn more and see examples ]

  • Pandas groupby with sort=False: Keep groups in order of appearance (opens on the source site)

    Lerner Consulting Blog ·

    A “groupby” call in Python Pandas is normally sorted by index. But if you’re grouping by month name, April will come before January. Pass “sort=False”, and the index will reflect […] The post Pandas groupby with sort=False: Keep groups in order of appearance appeared first on LernerPython.

  • Python 3.15 Gets a Surprise RC3 and Other Python News for October 2026 (opens on the source site)

    Real Python ·

    Python 3.15 was supposed to be the least surprising news of the month. The feature set has been locked since May, and our preview series has been walking through it all summer. Then a handful of last-minute bugs in lazy imports forced a surprise third release candidate, and the final release moved to October 9, later this week. The first-ever Python Packaging Council was elected and immediately handed a PEP written by one of its own members. PyPI changed how it counts downloads, so if your package’s chart just fell off a cliff, that’s the likely reason. Polars 2.0 reached the release…

  • Quiz: How to Launch an HTTP Server in One Line of Python Code (opens on the source site)

    Real Python ·

    In this quiz, you’ll test your understanding of How to Launch an HTTP Server in One Line of Python Code. By working through this quiz, you’ll revisit how to start Python’s http.server from the command line, bind it to an address and port, and choose which directory it shares. You’ll also check your knowledge of running CGI scripts, building a handler on top of BaseHTTPRequestHandler, serving over HTTPS, and knowing when to keep this server out of production. [ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to your inbox every couple of days. >> Click…

  • Pandas groupby basics: Aggregating a numeric column by category (opens on the source site)

    Lerner Consulting Blog ·

    The simplest grouping in Python Pandas is groupby: For example: Returns a series whose index is the unique values from passenger_count. The post Pandas groupby basics: Aggregating a numeric column by category appeared first on LernerPython.

  • How to Install Python on Your System: A Guide (opens on the source site)

    Real Python ·

    To learn how to install Python on your system, you can follow a few straightforward steps. First, check if Python is already installed by opening a command-line interface and typing python --version or python3 --version. You can install Python on Windows using the official installer from Python.org or through the Microsoft Store. On macOS, you can use the official installer or Homebrew. For Linux, use your package manager or build Python from source. By the end of this tutorial, you’ll understand how to: Check if Python is installed by running python --version or python3 --version in a…

  • Strings and Character Data in Python (opens on the source site)

    Real Python ·

    Python strings are a sequence of characters used for handling textual data. You can create strings in Python using quotation marks or the str() function, which converts objects into strings. Strings in Python are immutable, meaning once you define a string, you can’t change it. By the end of this tutorial, you’ll understand that: The str() function converts objects to their string representation. String interpolation in Python allows you to insert values into {} placeholders in strings using f-strings or the .format() method. You access string elements in Python using indexing with square…

  • Quiz: Python's collections: A Buffet of Specialized Data Types (opens on the source site)

    Real Python ·

    In this quiz, you’ll test your understanding of Python’s collections: A Buffet of Specialized Data Types. Python’s collections module provides specialized container data types that approach specific programming problems more clearly and more efficiently than the general purpose built-ins do. You’ll revisit namedtuple() for readable code, deque for queues and stacks, defaultdict for missing keys, OrderedDict for ordering, Counter for tallies, ChainMap for multiple mappings, and the wrapper classes for customizing built-ins. [ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet…

  • 11 Beginner Tips for Learning Python Programming (opens on the source site)

    Real Python ·

    We are so excited that you have decided to embark on the journey of learning Python! One of the most common questions we receive from our readers is “What’s the best way to learn Python?” I believe that the first step in learning any programming language is making sure that you understand how to learn. Learning how to learn is arguably the most critical skill involved in computer programming. Why is knowing how to learn so important? The answer is simple: as languages evolve, libraries are created, and tools are upgraded. Knowing how to learn will be essential to keeping up with these changes…

  • Basic Data Types in Python: A Quick Exploration (opens on the source site)

    Real Python ·

    Python data types are fundamental to the language, enabling you to represent various kinds of data. You use basic data types like int, float, and complex for numbers, str for text, bytes and bytearray for binary data, and bool for Boolean values. These data types form the core of most Python programs, allowing you to handle numeric, textual, and logical data efficiently. Understanding Python data types involves recognizing their roles and how to work with them. You can create and manipulate these data types using built-in functions and methods, and convert between them when necessary. By the…

  • Quiz: Operator and Function Overloading in Custom Python Classes (opens on the source site)

    Real Python ·

    In this quiz, you’ll test your understanding of Operator and Function Overloading in Custom Python Classes. By working through this quiz, you’ll revisit how Python’s data model connects built-in functions and operators to the special methods on a class. You’ll cover both the forward and reverse forms of those operators. Overloading is what makes your own objects behave the way other Python programmers expect, so getting comfortable with these special methods pays off in every class you write. [ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to your…

  • Kube AuthKit: Unified Kubernetes and OpenShift auth in Python (opens on the source site)

    Red Hat ·

    Kube AuthKit is a lightweight Python library that unifies Kubernetes and Red Hat OpenShift authentication behind a single, consistent API. Whether you're running locally with kubeconfig, inside a pod with a service account, or authenticating via OIDC or OpenShift OAuth—it's one line of code. The post Kube AuthKit: Unified Kubernetes and OpenShift auth in Python appeared first on Red Hat Developer.

  • Quiz: The Beginner's Guide to Python Turtle (opens on the source site)

    Real Python ·

    In this quiz, you’ll test your understanding of The Beginner’s Guide to Python Turtle. The turtle library ships with Python and hands you a virtual canvas plus an onscreen pen, so you see the result of every line of code right away. That makes it a friendly place to pick up the basics of the language. By working through this quiz, you’ll revisit how to move and turn the turtle, set the pen and fill colors, draw closed shapes that get colored in, and put for loops and conditional statements to work. [ Improve Your Python With 🐍 Python Tricks 💌 – Get a short & sweet Python Trick delivered to…

Related topics

This page is generated automatically from the engineering blogs we follow. Every post links to its source, where it was published. See all sources.

Privacy choices

Reading never requires analytics. These choices last 90 days on this browser.

Essential sign-in and security storage always stays on. Read the privacy notice.