Python tutorials

Python 3.14 Release Candidate Lands: Faster Code, Smarter Concurrency

Last month, Python 3.14 reached its first release candidate, pushing the interpreter past beta and onto the home stretch toward its final release on October 7. But that headline was only the start—new library releases also landed, Django celebrated its 20th birthday, and EuroPython brought the community together in Prague. What follows is a quick-read digest of everything that mattered, from core-language breakthroughs to tooling upgrades and community milestones. Feel free to skip straight to whatever interests you most. Python […]

Read more

Quiz: Python Basics: Setting Up Python

Interactive Quiz ⋅ 5 QuestionsBy Martin Breuss Share In this quiz, you will review the key steps for installing Python on Windows, macOS, and Ubuntu Linux. You will recall what the PATH environment variable is for, and what Python distribution to choose. Note: The explanations in the questions will link back to the Windows installation lesson, but all question are kept general, so you’ll be able to answer them independent of which operating system you use. You’ll also revisit how […]

Read more

Quiz: What Are Mixin Classes in Python?

Interactive Quiz ⋅ 8 QuestionsBy Bartosz Zaczyński Share In this quiz, you’ll test your understanding of What Are Mixin Classes in Python? By working through this quiz, you’ll revisit Python mixins, how they’re used, and the benefits they offer. The quiz contains 8 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

What Are Mixin Classes in Python?

Mixins offer a powerful way to reuse code across multiple Python classes without forcing them into a rigid inheritance hierarchy. Instead of building deep and brittle class trees, you can use mixins to share common behaviors in a modular and flexible way. Learn when and how to implement mixin classes effectively in your Python projects. By the end of this tutorial, you’ll understand that: Mixins allow you to add isolated, reusable functionalities to classes without enforcing a strict type hierarchy. […]

Read more

Quiz: Mastering While Loops

Interactive Quiz ⋅ 7 QuestionsBy Martin Breuss Share In this quiz, you’ll practice indefinite iteration using the Python while loop. You’ll test your knowledge of constructing basic and complex while loops, interrupting loop execution with break and continue, use the else clause with a while loop, and deal with infinite loops. The quiz contains 7 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 […]

Read more

Quiz: Using Dictionaries in Python

Interactive Quiz ⋅ 7 QuestionsBy Martin Breuss Share Do you remember how Python dictionaries work? In this quiz, you’ll revisit key concepts, such as accessing values, adding and removing entries, nesting dictionaries, and understanding valid key types. Brush up on these essentials with Using Dictionaries in Python before diving into the quiz. The quiz contains 7 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 […]

Read more

Exploring Python T-Strings

Python 3.14’s t-strings allow you to intercept and transform input values before assembling them into a final representation. Unlike f-strings, which produce a str object, t-strings resolve to a Template instance, allowing you to safely process and customize dynamic content. One of the key benefits of t-strings is their ability to help prevent security vulnerabilities like SQL injection and XSS attacks. They’re also valuable in other fields that rely on string templates, such as structured logging. By the end of […]

Read more

Quiz: Introduction to Web Scraping With Python

Interactive Quiz ⋅ 7 QuestionsBy Martin Breuss Share In this quiz, you’ll practice core concepts from Introduction to Web Scraping With Python. You’ll revisit what web scraping is, when to use Beautiful Soup, and how to install and configure your environment. You’ll also try out key syntax for creating BeautifulSoup objects, explore common HTML parsers, and check your understanding of tools like MechanicalSoup. The quiz contains 7 questions and there is no time limit. You’ll get 1 point for each […]

Read more

Quiz: Intro to Object-Oriented Programming (OOP) in Python

Interactive Quiz ⋅ 6 QuestionsBy Martin Breuss Share In this quiz, you’ll revisit the fundamentals of object-oriented programming (OOP) in Python and how to work with classes, objects, and constructors. The quiz contains 6 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: Build a Scalable Flask Web Project From Scratch

Interactive Quiz ⋅ 9 QuestionsBy Martin Breuss Share Are you ready to revisit the essentials of building Flask applications? In this quiz, you’ll practice Flask concepts such as views, blueprints, application factory patterns, and template usage. Check your understanding of Flask fundamentals by exploring concepts covered in the tutorial Build a Scalable Flask Web Project From Scratch. The quiz contains 9 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of […]

Read more
1 5 6 7 8 9 203