In python you can format parameters using %-formatting like that:
"Foo %(bar)" % {"bar": baz}
I use some parameters like %(name)s for string rendering in Python (I am coding an auto mail apps) and I dont know how to evaluate it before using because if the user input the wrong parameter such as %(names or %names or %name)s or %%name()s or something like that, the apps will comes to error.
%(foo),%(bar)but not%(foo)s,%(foo,%fooetc?