Here is the code where the error is arising
def cost(): tax = "$", str(\'%.2f\'%((d + c + 1.59)*0.15 )) var20.set(tax)