Catching memory leaks with your test suite

Resource leaks are an unpleasant type of bug. Little by little your program uses more memory, or more file descriptors, or some other limited resource. Everything seems fine—until you run, and now your program is dead. In many cases you can catch these sort of bugs in advance, by tweaking your test suite. Or, after you’ve discovered such a bug, you can use your test suite to identify what is causing it. In this article we’ll cover: An example of […]

Read more

Building Dictionary Comprehensions in Python

Dictionary comprehensions are a concise and quick way to create, transform, and filter dictionaries in Python. They can significantly enhance your code’s conciseness and readability compared to using regular for loops to process your dictionaries. Understanding dictionary comprehensions is crucial for you as a Python developer because they’re a Pythonic tool for dictionary manipulation and can be a valuable addition to your programming toolkit. In this video course, you’ll learn how to: Create dictionaries using dictionary comprehensions Transform existing dictionaries […]

Read more

AutoGen v0.4: Reimagining the foundation of agentic AI for scale, extensibility, and robustness

Over the past year, our work on AutoGen has highlighted the transformative potential of agentic AI and multi-agent applications. Today, we are excited to announce AutoGen v0.4, a significant milestone informed by insights from our community of users and developers. This update represents a complete redesign of the AutoGen library, developed to improve code quality, robustness, generality,  

Read more

Ways to Start Interacting With Python

There are multiple ways of interacting with Python, and each can be useful for different scenarios. You can quickly explore functionality in Python’s interactive mode using the built-in Read-Eval-Print Loop (REPL), or you can write larger applications to a script file using an editor or Integrated Development Environment (IDE). In this video course, you’ll learn how to: Use Python interactively by typing code directly into the interpreter Execute code contained in a script file from the command line Work within […]

Read more

Learn From 2024’s Most Popular Python Tutorials and Courses

As we welcome 2025, it’s the perfect time to reflect on the exciting advancements the Python community made in 2024. Python 3.13 stood out as a milestone release, introducing ground-breaking experimental features like free threading and a just-in-time (JIT) compiler, both designed to boost performance. The REPL also received an upgrade, with a modern redesign that enhances the coding experience for developers of all levels. These updates, along with other cool new features, have reinforced Python’s reputation as a continually […]

Read more

How to Remove Items From Lists in Python

Removing items from a Python list is a common task that you can accomplish with various techniques. Whether you need to remove an item by its position or value, Python has you covered. In this tutorial, you’ll explore different approaches to removing items from a list, including using .pop(), the del statement, and .remove(). The .remove() method allows you to delete the first occurrence of a specified value, while .pop() can remove an item by its index and return it. […]

Read more

AIOpsLab: Building AI agents for autonomous clouds

In our increasingly complex digital landscape, enterprises and cloud providers face significant challenges in the development, deployment, and maintenance of sophisticated IT applications. The broad adoption of microservices and cloud-based serverless architecture has streamlined certain aspects of application development while simultaneously introducing a host of operational difficulties, particularly in fault diagnosis and mitigation. These complexities can result in outages, which have the potential to cause major business disruptions, underscoring the critical need for robust solutions that ensure high availability and […]

Read more

Ideas: AI and democracy with Madeleine Daepp and Robert Osazuwa Ness

[MUSIC FADES] I’m your guest host, Ginny Badanes, and I lead Microsoft’s Democracy Forward program, where we’ve spent the past year deeply engaged in supporting democratic elections around the world, including the recent US elections. We have been working on everything from raising awareness of nation-state propaganda efforts to helping campaigns and election officials prepare for deepfakes to protecting political campaigns from cyberattacks. Today, I’m joined by two researchers who have also been diving deep into the impact of generative […]

Read more

Quiz: How to Remove Items From Lists in Python

Interactive Quiz ⋅ 6 QuestionsBy Leodanis Pozo Ramos Share In this quiz, you’ll test your understanding of How to Remove Items From Lists in Python. By working through this quiz, you’ll revisit the different approaches to removing items from a list in Python, including .pop(), .remove(), the del statement, and more. 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 […]

Read more

Get Started With Django User Management

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: Building a Django User Management System Django user management allows you to integrate user authentication and management into your web applications. By using Django, you can leverage the framework’s built-in authentication system to manage user registration, login, and logout. With just a few additional templates, you can enable users to reset and change their […]

Read more
1 2 3 911