MemotivaBuilt-in data types

What are f-strings?

Built-in data types

Audio flashcard · 0:15

Nortren·

What are f-strings?

0:15

F-strings, formally called formatted string literals, are strings prefixed with f or F that allow embedded expressions inside curly braces. They were introduced in Python 3.6 and are the recommended way to format strings. They are faster than the percent operator and the format method.
docs.python.org