Python’s Instance, Class, and Static Methods Demystified

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: OOP Method Types in Python: @classmethod vs @staticmethod vs Instance Methods Instance, class, and static methods each serve a distinct role in Python, and knowing when to use one over another is key to writing clean, maintainable code. Instance methods operate on individual objects using self, while class methods use cls to access class-level […]

Read more

Python Textual: Build Beautiful UIs in the Terminal

Have you ever wanted to create an app with an appealing interface that works in the command line? Welcome to Textual, a Python toolkit and framework for creating beautiful, functional text-based user interface (TUI) applications. The Textual library provides a powerful and flexible framework for building TUIs. It offers a variety of features that allow you to create interactive and engaging console applications. In this tutorial, you’ll learn how to create, style, and enhance Textual apps with layouts, events, and […]

Read more

Getting to Know Duck Typing in Python

Python makes extensive use of a type system known as duck typing. This system is based on an object’s behavior and interface. Many built-in classes and tools support this type system, which makes them pretty flexible and decoupled. Duck typing is a core concept in Python. Understanding it will give you deeper insight into how the language works and, more importantly, how to use this approach in your own code. In this video course, you’ll learn: What duck typing is […]

Read more

Python News Roundup: March 2025

Spring isn’t the only thing in the air—new Python releases are here! Last month, Python’s core development team released versions 3.13.2, 3.12.9, and 3.14.0 alpha 5 of the language. The 3.14.0a5 version is the fifth of seven planned alpha releases. You can install this alpha release to try some new and exciting language features. The PyPy project has also released a new version—7.3.19—featuring interpreters for Python 2.7, 3.10, and the newly introduced Python 3.11. There’s also news from the Python […]

Read more

Semantic Telemetry: Understanding how users interact with AI systems

AI tools are proving useful across a range of applications, from helping to drive the new era of business transformation to helping artists craft songs. But which applications are providing the most value to users? We’ll dig into that question in a series of blog posts that introduce the Semantic Telemetry project at Microsoft Research. In this initial post, we will introduce a new data science approach that we will use to analyze topics and task complexity of Copilot in […]

Read more

Quiz: Build an LLM RAG Chatbot With LangChain

Interactive Quiz ⋅ 10 QuestionsBy Martin Breuss Share In this quiz, you’ll test your understanding of building a RAG chatbot using LangChain and Neo4j. You’ll revisit the process of designing a chatbot and working with graph databases. The quiz contains 10 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: Python Textual: Build Beautiful UIs in the Terminal

Interactive Quiz ⋅ 7 QuestionsBy Leodanis Pozo Ramos Share In this quiz, you’ll test your understanding of the Python Textual library. This library is used for creating text-based interface applications for the terminal. By working through this quiz, you’ll reinforce your knowledge of Textual’s key concepts and features. 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 score. The maximum […]

Read more

Highlights from Machine Translation and Multilinguality in February 2025

WMT24++: Expanding the Language Coverage of WMT24 to 55 Languages & Dialects Folks from Google and Unbable extended the WMT24 test sets from 8 to 55 languages by adding more human references. They evaluated LLMs and commercial MT services on them. The winner is OpenAI’s o1, followed by Claude and Gemini. The best open-source model is Unbabel’s Tower, which outperforms all standard commercial translation services (Google Translate, DeepL, and Microsoft Translator). SMOL: Professionally translated parallel data for 115 under-represented languages […]

Read more

The AI Revolution in Medicine, Revisited: An Introduction

Transcript [MUSIC] PETER LEE: This is The AI Revolution in Medicine, Revisited. I’m Peter Lee, president of Microsoft Research, and I’m pretty excited to introduce this series of conversations as part of the Microsoft Research Podcast. About two years ago, with Carey Goldberg and Zak Kohane, we wrote a book, The AI Revolution in Medicine. This was a book that was intended to educate the world of healthcare and the world of medical research about this new thing that was […]

Read more

Quiz: What Is the Python Global Interpreter Lock (GIL)?

Interactive Quiz ⋅ 6 QuestionsBy Martin Breuss Share In this quiz, you’ll test your understanding of the Python Global Interpreter Lock (GIL). The GIL allows only one thread to hold the control of the Python interpreter. This has advantages, but can also be a performance bottleneck in CPU-bound and multi-threaded code. By working through this quiz, you’ll revisit the impact of the GIL on the performance of your Python programs and how to mitigate it. The quiz contains 6 questions […]

Read more
1 3 4 5 6 7 920