Lets say I have this line:
\"My name is {name}\".format(name=\"qwerty\")
I know that the variable name is name and so I can f
name
Or an alternative is to use a function:
def format_string(name): return "My name is {name}".format(name="qwerty")
Then call it:
format_string("whatever")