Python’s asyncio: A Hands-On Walkthrough

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: Hands-On Python 3 Concurrency With the asyncio Module Python’s asyncio library enables you to write concurrent code using the async and await keywords. The core building blocks of async I/O in Python are awaitable objects—most often coroutines—that an event loop schedules and executes asynchronously. This programming model lets you efficiently manage multiple I/O-bound tasks […]

Read more

Working With Python’s Built-in Exceptions

Python has a complete set of built-in exceptions that provide a quick and efficient way to handle errors and exceptional situations in your code. Knowing the most commonly used built-in exceptions is key for you as a Python developer. This knowledge will help you debug code because each exception has a specific meaning that can shed light on your debugging process. You’ll also be able to handle and raise most of the built-in exceptions in your Python code, which is […]

Read more

Quiz: Bitwise Operators in Python

Interactive Quiz ⋅ 17 QuestionsBy Bartosz Zaczyński Share In this quiz, you’ll test your understanding of the Bitwise Operators in Python. By working through this quiz, you’ll revisit how to use Python’s bitwise AND (&), OR (|), XOR (^), NOT (~), left and right shifts (), and bitmasks. You’ll also see practical examples for manipulating data at the bit level. Good luck! The quiz contains 17 questions and there is no time limit. You’ll get 1 point for each correct […]

Read more

Bitwise Operators 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: Binary, Bytes, and Bitwise Operators in Python Computers store all kinds of information as a stream of binary digits called bits. Whether you’re working with text, images, or videos, they all boil down to ones and zeros. Python’s bitwise operators let you manipulate those individual bits of data at the most granular level. You […]

Read more

Navigating medical education in the era of generative AI

[THEME MUSIC FADES]   The book passage I read at the top is from Chapter 4, “Trust but Verify.” In it, we explore how AI systems like GPT-4 should be evaluated for performance, safety, and reliability and compare this to how humans are both trained and assessed for readiness to deliver healthcare.  In previous conversations with guests, we’ve spoken a lot about AI in the clinic as well as in labs and companies developing AI-driven tools. We’ve also talked about AI […]

Read more

Xinxing Xu bridges AI research and real-world impact at Microsoft Research Asia – Singapore

AI has made remarkable progress in recent years, but turning experimental models into tools that work in the real world is still a major challenge. Bridging this gap between innovation and application has shaped the career of Xinxing Xu, principal researcher at Microsoft Research Asia – Singapore, and underpins the mission of the lab’s newly established presence in the region. Xinxing Xu, Principal Researcher, Microsoft Research Asia – Singapore “Innovative algorithms can only demonstrate their true value when tested with […]

Read more

Exploring Python Closures: Examples and Use Cases

In Python, a closure is typically a function defined inside another function. This inner function grabs the objects defined in its enclosing scope and associates them with the inner function object itself. The resulting combination is called a closure. Closures are a common feature in functional programming languages. In Python, closures can be pretty useful because they allow you to create function-based decorators, which are powerful tools. In this video course, you’ll: Learn what closures are and how they work […]

Read more

What Does isinstance() Do in Python?

Python’s isinstance() function helps you determine if an object is an instance of a specified class or its superclass, aiding in writing cleaner and more robust code. You use it to confirm that function parameters are of the expected types, allowing you to handle type-related issues preemptively. This tutorial explores how isinstance() works, its use with subclasses, and how it differs from type(). By the end of this tutorial, you’ll understand that: isinstance() checks if an object is a member […]

Read more

AI Testing and Evaluation: Reflections

AMANDA CRAIG DECKARD: Thank you so much. SULLIVAN: In our intro episode, you really helped set the stage for this series. And it’s been great, because since then, we’ve had the pleasure of speaking with governance experts about genome editing, pharma, medical devices, cybersecurity, and we’ve also gotten to spend some time with our own Microsoft responsible AI leaders and hear reflections from them. And here’s what stuck with me, and I’d love to hear from you on this, as […]

Read more
1 2 3 930