Quiz: Python’s pathlib Module: Taming the File System

Interactive Quiz ⋅ 9 QuestionsBy Joseph Peart Share In this quiz, you’ll revisit how to tame the file system with Python’s pathlib module. You’ll reinforce core pathlib concepts, including checking whether a path points to a file and instantiating Path objects. You’ll revisit joining paths with the / operator and .joinpath(), iterating over directory contents with .iterdir(), and renaming files on disk with .replace(). You’ll also check your knowledge of common file operations such as creating empty files with .touch(), […]

Read more

Quiz: What Exactly Is the Zen of Python?

Interactive Quiz ⋅ 8 QuestionsBy Joseph Peart Share In this quiz, you’ll test your understanding of The Zen of Python. By working through this quiz, you’ll revisit core aphorisms and learn how they guide readable, maintainable, and Pythonic code. The questions explore practical tradeoffs like breaking dense expressions into smaller parts, favoring clarity over cleverness, and making code behavior explicit. The quiz contains 8 questions and there is no time limit. You’ll get 1 point for each correct answer. At […]

Read more

What Exactly Is the Zen of Python?

The Zen of Python is a collection of 19 aphorisms that capture the guiding principles behind Python’s design. You can display them anytime by running import this in a Python REPL. Tim Peters wrote them in 1999 as a joke, but they became an iconic part of Python culture that was even formalized as PEP 20. By the end of this tutorial, you’ll understand: The Zen of Python is a humorous poem of 19 aphorisms describing Python’s design philosophy Running […]

Read more

Improving Your Tests With the Python Mock Object Library

When you’re writing robust code, tests are essential for verifying that your application logic is correct, reliable, and efficient. However, the value of your tests depends on how well they demonstrate these qualities. Obstacles such as complex logic and unpredictable dependencies can make writing valuable tests challenging. The Python mock object library, unittest.mock, can help you overcome these obstacles. By the end of this course, you’ll be able to: Create Python mock objects using Mock Assert that you’re using objects […]

Read more

pandas 3.0 Lands Breaking Changes and Other Python News for February 2026

Last month brought exciting performance news for Python! The Python 3.15 alphas showed JIT compiler speed gains of up to 7–8% on some platforms, while pandas released version 3.0, delivering the most significant performance improvements in years. The Python Software Foundation also received considerable investments in Python security and launched the 2026 Python Developers Survey, and PyTorch 2.10 deprecated TorchScript. Time to dive into the biggest Python news from the past month! Python Releases and PEP Highlights Last month brought […]

Read more

The best Docker base image for your Python application (February 2026)

When you’re building a Docker image for your Python application, you’re building on top of an existing image—and there are many possible choices for the resulting container. There are OS images like Ubuntu, and there are the many different variants of the python base image. And now there’s a new choice, installing Python using uv, which allows you to use any base image you’d like. Which one should you use? Which one is better? There are many choices, and it […]

Read more

Rethinking imitation learning with Predictive Inverse Dynamics Models

At a glance Imitation learning becomes easier when an AI agent understands why an action is taken. Predictive Inverse Dynamics Models (PIDMs) predict plausible future states, clarifying the direction of behavior during imitation learning. Even imperfect predictions reduce ambiguity, making it clearer which action makes sense in the moment. This makes PIDMs far more data‑efficient  

Read more

Why You Should Attend a Python Conference

The idea of attending a Python conference can feel intimidating. You might wonder if you know enough, if you’ll fit in, or if it’s worth your time and money. In this guide, you’ll learn about the different types of Python conferences, what they actually offer, who they’re for, and how attending one can support your learning, confidence, and connection to the wider Python community. Prerequisites This guide is for all Python users who want to grow their Python knowledge, get […]

Read more

Getting Started With Google Gemini CLI

This video course will teach you how to use Gemini CLI to bring Google’s AI-powered coding assistance directly into your terminal. After you authenticate with your Google account, this tool will be ready to help you analyze code, identify bugs, and suggest fixes—all without leaving your familiar development environment. Imagine debugging code without switching between your console and browser, or picture getting instant explanations for unfamiliar projects. Like other command-line AI assistants, Google’s Gemini CLI brings AI-powered coding assistance directly […]

Read more
1 2 3 947