Use f-strings (introduced in Python 3.6):
a = 15
print(fr'Escape is here:\n but still {a}')
# => Escape is here:\n but still 15
Use f-strings (introduced in Python 3.6):
a = 15
print(fr'Escape is here:\n but still {a}')
# => Escape is here:\n but still 15