Learn about what Python’s formatted string literals (f-strings) are and when to use them. You’ll see that f-strings allow you to use embedded Python expressions inside string constants:
>>> f'Hello, {name}!'
'Hello, Bob!'
This lesson will also show you how to use f-strings for:
- Simple string formatting and
- Inline arithmetic
Karl on May 4, 2019
Hey, as a not native english speaker, it is easy to me to understand your speech. Thanks! :-)