I have an exec statement to set the formatting of two variables in python 3.6. Even though the code works fine, I need to change this due to compliance issue. Please let me know how it can be done differently.
My statement: exec("{}='{}'".format(item,s))
thanks in advance for your help.