Testing the compiler optimizations your code relies on

In a recent article by David Lattimore, he demonstrates a number of Rust performance tricks, including one that involve writing code that looks like a loop, but which in practice is optimized down to a fixed number of instructions. Having what looks like an O(n) loop turned into a constant operation is great for speed! But there’s a problem with this sort of trick: how do you know the compiler will keep doing it? What happens when the compiler’s next […]

Read more

Quiz: Defining and Calling Python Functions

Interactive Quiz ⋅ 9 QuestionsBy Martin Breuss Share Ready to revisit how Python functions work? In this quiz, you’ll practice defining and calling functions, using positional and keyword arguments, managing defaults, and writing docstrings. You’ll also get hands-on with collecting extra arguments and enforcing how callers pass them. Sharpen your skills by applying the concepts from Defining and Calling Functions in Python. The quiz contains 9 questions and there is no time limit. You’ll get 1 point for each correct […]

Read more

Quiz: Sorting Dictionaries in Python: Keys, Values, and More

Interactive Quiz ⋅ 11 QuestionsBy Stephen Gruppetta Share This quiz helps you practice sorting dictionaries by keys, values, and custom rules in modern Python. You’ll revisit how insertion order works, when to use different views, and how to rebuild sorted dictionaries. You’ll also learn best practices for sorting dictionaries efficiently. For a complete overview, check out Sorting Dictionaries: Keys, Values, and More. The quiz contains 11 questions and there is no time limit. You’ll get 1 point for each correct […]

Read more

Python String Splitting

Python’s .split() method lets you divide a string into a list of substrings based on a specified delimiter. By default, .split() separates at whitespace, including spaces, tabs, and newlines. You can customize .split() to work with specific delimiters using the sep parameter, and control the amount of splits with maxsplit. By the end of this video course, you’ll understand that: You split a string by spaces in Python using .split() without arguments. Python’s .split() method can split on custom delimiters […]

Read more

Breaking the networking wall in AI infrastructure 

Memory and network bottlenecks are increasingly limiting AI system performance by reducing GPU utilization and overall efficiency, ultimately preventing infrastructure from reaching its full potential despite enormous investments. At the core of this challenge is a fundamental trade-off in the communication technologies used for memory and network interconnects. Datacenters typically deploy two types of physical cables for communication between GPUs. Traditional  

Read more

The Python Documentary Celebrates History While Developer Surveys Celebrate Python

Python is making history, and headlines. The much-anticipated Python: The Documentary premiered last month, capturing 34 years of programming history. But Python isn’t just looking back, it’s also moving forward at breakneck speed. The recent developer surveys revealed Python’s explosive growth. At the same time, the Python Software Foundation paused its grants program amid unprecedented demand, PyPI implemented multiple security enhancements, while JetBrains announced a transition for PyCharm Community Edition into a unified product model. Here’s what’s been happening in […]

Read more

Quiz: Python String Splitting

Interactive Quiz ⋅ 7 QuestionsBy Vishal Shrestha Share Ready to brush up on Python’s string splitting skills? This quiz will help you practice how to use split(), handle whitespace, manage delimiters, and even tackle trickier patterns with regex. You’ll get hands-on with maxsplit, explore differences between split() and rsplit(), and see how to handle edge cases. For a deeper dive, check out the Real Python course on string splitting. The quiz contains 7 questions and there is no time limit. […]

Read more

Quiz: uv vs pip: Managing Python Packages and Dependencies

Interactive Quiz ⋅ 6 QuestionsBy Leodanis Pozo Ramos Share In this quiz, you’ll test your understanding of uv vs pip: Managing Python Packages and Dependencies. With this knowledge, you’ll be able to confidently choose between pip, the default and widely supported package installer, and uv, the newer modern project manager. You’ll dig into install speeds, locking mechanisms, dependency management, and the implications for different environments and workflows. The quiz contains 6 questions and there is no time limit. You’ll get […]

Read more

uv vs pip: Managing Python Packages and Dependencies

When it comes to Python package managers, the choice often comes down to uv vs pip. You may choose pip for out-of-the-box availability, broad compatibility, and reliable ecosystem support. In contrast, uv is worth considering if you prioritize fast installs, reproducible environments, and clean uninstall behavior, or if you want to streamline workflows for new projects. In this tutorial, you’ll compare both tools. To keep this comparison meaningful, you’ll focus on the overlapping features, primarily package installation and dependency management. […]

Read more

A History of Python Versions and Features

This course gives you a direct, practical overview of how Python has evolved—what changed in each major version, why it matters, and how to use the features that define modern Python. You’ll see both the historical context and hands-on code, so you understand not just what changed, but why and how to use it today. In this course, you’ll learn: Key new features introduced in every major Python version, starting from early Python 1 up to Python 3.14 The story […]

Read more
1 2 3 4 980