PEP498 Backport for all supported Python versions.
pip install fstring
from fstring import fstring as f
x = 1
y = 2
print f("{x}+{y}={x+y}") # 1+2=3| Name | Name | Last commit date | ||
|---|---|---|---|---|
PEP498 Backport for all supported Python versions.
pip install fstring
from fstring import fstring as f
x = 1
y = 2
print f("{x}+{y}={x+y}") # 1+2=3