F-String
An F-string, or formatted string literal, is a feature in the Python programming language introduced in version 3.6. It allows developers to embed expressions inside string literals, making it easier to create dynamic strings. By prefixing a string with the letter 'f' or 'F', you can include variables and expressions within curly braces, which are evaluated at runtime.
For example, if you have a variable called name, you can create a greeting like `f"Hello, name!"`. This simplifies string formatting compared to older methods, such as using the str.format() method or the % operator, enhancing code readability and efficiency.