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