I am reading a string from a text file into a Python program. The strings read have variables-names defined in Python code. How can I read the text string from a file and then substitute variables in it with their value?
On Bash I do it using ${variable-name}
in text file.