Search results for “site:realpython.com”

About 14 results

realpython.com python-string-formatting

Python String Formatting: Available Tools and Their Features – Real Python

In this tutorial, you'll learn about the main tools for string formatting in Python, as well as their strengths and weaknesses. These tools include f-strings, the .format() method, and the modulo operator.

realpython.com python-built-in-functions

Python's Built-in Functions: A Complete Exploration – Real Python

In this tutorial, you'll learn the basics of working with Python's numerous built-in functions. You'll explore how to use these predefined functions to perform common tasks and operations, such as mathematical calculations, data type conversions, and string manipulations.

realpython.com atom.xml

Real Python

What motivates someone to learn how to code as a scientist? How do you harness the excitement of solving problems quickly and make the connection to the benefits of coding in your scientific work? This week on the show, we speak with Ben Lear and Christopher Johnson about their book "Coding For...

Quality not rated yet About this page: Real Python ›
Save: Real Python
realpython.com python-format-mini-language

Python's Format Mini-Language for Tidy Strings – Real Python

In this tutorial, you'll learn about Python's format mini-language. You'll learn how to use the mini-language to create working format specifiers and build nicely formatted strings and messages in your code.

realpython.com python-string-interpolation

String Interpolation in Python: Exploring Available Tools – Real Python

In this tutorial, you'll learn about the different tools that Python provides for performing string interpolation. String interpolation allows you to create new strings by inserting different objects into a string template.

realpython.com python-modulo-string-formatting

Modulo String Formatting in Python – Real Python

You can use the modulo operator for string formatting in Python. It's a commonly used technique in older Python versions, especially in Python 2. Therefore, you might see it when digging into existing code bases, and it can be helpful to understand how it works.

Try “site:realpython.com” on: Marginalia · Mojeek · Wiby · DuckDuckGo · Bing · Google · Wikipedia · Internet Archive