fästrings
F-strings, short for formatted string literals, are a feature of the Python programming language that enable inline expression evaluation within string literals. Introduced in Python 3.6 as part of PEP 498, they provide a concise and readable syntax for combining text with values.
Syntax and conversion: An f-string is created by prefixing a string literal with the letter f or
Expressions inside braces are evaluated at runtime using the current local and global scope. They can access
Limitations and notes: f-strings must be valid Python expressions; to include braces literally you must escape.
Comparison and usage: F-strings are preferred in modern Python for readability and performance. They can replace