Python: what are f-strings and how to use them?

Example:

name = "John"
F-strings are a way to embed expressions inside string literals.

Solution:

greeting = f"Hello, {name}!"

Beginner's Guide to Python