Put a variable's value (interpolate) in a Python string 🐍 #shorts #python

preview_player
Показать описание
Variable embedding (or interpolation) in Python strings is made easy with f-strings. Surround the variables name with curly braces.
f"Will is {age} years old"
Рекомендации по теме