Опубликовано: 27 Сентябрь 2024 на канале: ModernPython
88
7
Use f strings to put variables directly into your strings in MODERN Python. Create an f string by placing f in front of string. Then use curly braces to embed your variables into the string:
f"Hello, {name}"