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

Показать описание
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"
f"Will is {age} years old"