Python tutorials

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

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

Quiz: Managing Multiple Python Versions With pyenv

Interactive Quiz ⋅ 9 QuestionsBy Martin Breuss Share In this quiz, you’ll test your understanding of Managing Multiple Python Versions With pyenv. You’ll revisit how to install multiple versions of Python and switch between the installed versions. 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 a total score. The maximum score is 100%. Good luck! Related Resources

Read more

Quiz: Deep vs Shallow Copies in Python

Interactive Quiz ⋅ 7 QuestionsBy Joseph Peart Share Ready to reinforce your knowledge of deep and shallow copies in Python? This quiz covers assignment semantics, object identity, and how to properly copy nested and user-defined objects. You will also practice writing your own copy helpers and customizing class copying. Brush up on these essential concepts before you start by reviewing Deep vs Shallow Copies in Python. The quiz contains 7 questions and there is no time limit. You’ll get 1 […]

Read more

Quiz: Exploring Python Closures: Examples and Use Cases

Interactive Quiz ⋅ 11 QuestionsBy Stephen Gruppetta Share In this quiz, you’ll test your understanding of Python closures. Closures are a common feature in functional programming languages and are particularly popular in Python because they allow you to create function-based decorators. Take this quiz after taking our Exploring Python Closures: Examples and Use Cases course. 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, […]

Read more
1 2 3 4 200