Python tutorials

Quiz: SOLID Design Principles: Improve Object-Oriented Code in Python

Interactive Quiz ⋅ 6 QuestionsBy Leodanis Pozo Ramos Share In this quiz, you’ll test your understanding of the SOLID Design Principles: Improve Object-Oriented Code in Python tutorial. You will reason about behavior contracts, attribute invariants, and choosing composition or separate types over inheritance. For a refresher, you can watch the Design and Guidance: Object-Oriented Programming in Python course. The quiz contains 6 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end […]

Read more

SOLID Design Principles: Improve Object-Oriented Code in Python

Watch Now This tutorial has a related video course created by the Real Python team. Watch it together with the written tutorial to deepen your understanding: Design and Guidance: Object-Oriented Programming in Python A great approach to writing high-quality object-oriented Python code is to consistently apply the SOLID design principles. SOLID is a set of five object-oriented design principles that can help you write maintainable, flexible, and scalable code based on well-designed, cleanly structured classes. These principles are foundational best […]

Read more

How to Build the Python Skills That Get You Hired

When you’re learning Python, the sheer volume of topics to explore can feel overwhelming because there’s so much you could focus on. Should you dive into web frameworks before exploring data science? Is test-driven development something you need right away? And which skills actually matter to employers in the age of AI-assisted software development? Python itself is relatively beginner-friendly, but its versatility makes it easy to wander without direction. Without a clear plan, you can spend months studying topics that […]

Read more

Exploring Asynchronous Iterators and Iterables

When you write asynchronous code in Python, you’ll likely need to create asynchronous iterators and iterables at some point. Asynchronous iterators are what Python uses to control async for loops, while asynchronous iterables are objects that you can iterate over using async for loops. Both tools allow you to iterate over awaitable objects without blocking your code. This way, you can perform different tasks asynchronously. In this video course, you’ll: Learn what async iterators and iterables are in Python Create […]

Read more

Quiz: Writing DataFrame-Agnostic Python Code With Narwhals

Interactive Quiz ⋅ 10 QuestionsBy Ian Eyre Share In this quiz, you’ll test your understanding of what the Narwhals library offers you. By working through this quiz, you’ll revisit many of the concepts presented in the Writing DataFrame-Agnostic Code With Narwhals tutorial. Remember, also, the official documentation is a great reference source for the latest Narwhals developments. The quiz contains 10 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of […]

Read more

Writing DataFrame-Agnostic Python Code With Narwhals

Narwhals is intended for Python library developers who need to analyze DataFrames in a range of standard formats, including Polars, pandas, DuckDB, and others. It does this by providing a compatibility layer of code that handles any differences between the various formats. In this tutorial, you’ll learn how to use the same Narwhals code to analyze data produced by the latest versions of two very common data libraries. You’ll also discover how Narwhals utilizes the efficiencies of your source data’s […]

Read more

Quiz: Python Inner Functions: What Are They Good For?

Interactive Quiz ⋅ 5 QuestionsBy Leodanis Pozo Ramos Share In this quiz, you’ll test your understanding of the Python Inner Functions: What Are They Good For? tutorial. By working through this quiz, you’ll revisit how inner functions work with enclosing scopes, when to use nonlocal to update captured state, how closures retain data across calls, and how decorators wrap a callable to extend behavior. You’ll apply these ideas to organize helpers, reuse state, and write clear, maintainable functions in real […]

Read more

Lazy Imports Land in Python and Other Python News for December 2025

A lot happened last month in the world of Python! The core developers pushed ahead on Python 3.15, accepting PEP 810 to bring explicit lazy imports to the language. PyPI tightened account security, Django 6.0 landed with a slew of new features while celebrating twenty years of releases, and the Python Software Foundation (PSF) laid out its financial outlook and kicked off a year-end fundraiser. Let’s dive into the biggest Python news from the past month! Python Releases and PEP […]

Read more

Quiz: How to Use Google’s Gemini CLI for AI Code Assistance

Interactive Quiz ⋅ 7 QuestionsBy Bartosz Zaczyński Share In this quiz, you’ll test your understanding of the How to Use Google’s Gemini CLI for AI Code Assistance tutorial. By working through these questions, you’ll revisit how to install and verify prerequisites like Node.js, explore authentication options, and understand the CLI’s permission and safety model. You’ll also practice managing interactive sessions, enforcing stronger models, and approving or editing shell commands securely. To deepen your understanding, review the sections on verifying your […]

Read more
1 2 3 206