Quiz: String Interpolation in Python: Exploring Available Tools

Interactive Quiz ⋅ 13 QuestionsBy Leodanis Pozo Ramos Share Or copy the link: Copied! Happy Pythoning! Test your understanding of Python’s tools for string interpolation, including f-strings, the .format() method, and the modulo operator. Take this quiz after reading our String Interpolation in Python: Exploring Available Tools tutorial. The quiz contains 13 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end    

Read more

String Interpolation in Python: Exploring Available Tools

String interpolation allows you to create strings by inserting objects into specific places in a target string template. Python has several tools for string interpolation, including f-strings, the str.format() method, and the modulo operator (%). Python’s string module also provides the Template class, which you can use for string interpolation. In this tutorial, you’ll: Learn how to use f-strings for eager string interpolation Perform lazy string interpolation using the str.format() method Learn the basics of using the modulo operator (%) […]

Read more

Introducing Aurora: The first large-scale foundation model of the atmosphere

When Storm Ciarán battered northwestern Europe in November 2023, it left a trail of destruction. The low-pressure system associated with Storm Ciarán set new records for England, marking it as an exceptionally rare meteorological event. The storm’s intensity caught many off guard, exposing the limitations of current weather-prediction models and highlighting the need for more accurate forecasting in the face of climate change. As communities grappled with the aftermath, the urgent question arose: How can we better anticipate and prepare […]

Read more

Let’s optimize! Running 15× faster with a situation-specific algorithm

Let’s speed up some software! Our motivation: we have an image, a photo of some text from a book. We want to turn it into a 1-bit image, with just black and white, extracting the text so we can easily read it. We’ll use an example image from scikit-image, an excellent image processing library: from skimage.data import page import numpy as np IMAGE = page() assert IMAGE.dtype == np.uint8 Here’s what it looks like (it’s licensed under this license): The […]

Read more

What’s Your Story: Weishung Liu

In this episode, I’m talking with Principal PM Manager Weishung Liu. Wei has used her love of storytelling and interest in people and their motivations to deliver meaningful products and customer experiences. This includes the creation of a successful line of Disney plush toys and contributions to the satellite internet system Starlink. With Microsoft, she helped develop Watch For, a real-time video analytics platform that has gone on to enhance gaming via streaming highlights and to support content moderation in […]

Read more

Beginning Data Science (7-day mini-course)

Data science uses mathematics to analyze data, distill information, and tell a story. The result of data science may be just to rigorously confirm a hypothesis, or to discover some useful property from the data. There are many tools you can use in data science, from basic statistics to sophisticated machine learning models. Even the most common tool can work wonderfully in a data science project. In this 7-part crash course, you will learn from examples how to perform a […]

Read more

Tips for Deploying Machine Learning Models Efficiently

Image created by Author using Midjourney Introduction The process of deploying machine learning models is an important part of deploying AI technologies and systems to the real world. Unfortunately, the road to model deployment can be a tough one. The process of deployment is often characterized by challenges associated with taking a trained model — the culmination of a lengthy data-preparation and model-training process — to the world at-large, where it must continue to perform well. These challenges arise as […]

Read more

What Are CRUD Operations?

The idea of CRUD is strongly connected with databases. That’s why it’s no surprise that CRUD operations correspond almost one-to-one with SQL commands: When you create data, you’re using the INSERT command to add new records to a table. After creation, you may read data using SELECT. With a SELECT query, you’re asking the database to retrieve the specific pieces of information you need, whether it’s a single value, a set of records, or complex relationships between data points. The […]

Read more

Research Focus: Week of May 27, 2024

Welcome to Research Focus, a series of blog posts that highlights notable publications, events, code/datasets, new hires and other milestones from across the research community at Microsoft. EVENT Register now for Research Forum on June 4 Join us for Research Forum (opens in new tab), an event series that explores recent research advances, bold new ideas, and important discussions with the global research community in the era of general  

Read more
1 50 51 52 53 54 973