It’s the string formatting operator. Read up on string formatting in Python.
format % values
Creates a string where format
specifies a format and values
are the values to be filled in.
More Related Contents:
- Why “cat” is not equal to “dog” in Python [duplicate]
- Check if multiple strings exist in another string
- and / or operators return value [duplicate]
- Converting integer to string in Python
- Create nice column output in python
- Find the nth occurrence of substring in a string
- Python: defining my own operators?
- What is the most efficient string concatenation method in Python?
- Why is ” > 0 True in Python 2?
- How to remove square bracket from pandas dataframe
- Overloading Addition, Subtraction, and Multiplication Operators
- Python augmenting multiple variables inline
- Converting a string that represents a list, into an actual list object
- How to search if dictionary value contains certain string with Python
- How to concatenate (join) items in a list to a single string
- How can I use f-string with a variable, not with a string literal?
- Using Python’s Format Specification Mini-Language to align floats
- How to get an expression between balanced parentheses
- Parsing json and searching through it
- f.read coming up empty
- Convert True/False value read from file to boolean
- Is python += string concatenation bad practice?
- Split text after the second occurrence of character
- Find all the occurrences of a character in a string
- Why is ‘\x’ invalid in Python?
- Join a list of strings in python and wrap each string in quotation marks
- How do I check if a given Python string is a substring of another one? [duplicate]
- Best way to randomize a list of strings in Python [duplicate]
- pandas – convert string into list of strings [duplicate]
- Adding characters after a certain word in Python using regex