my code that is working
*****************************************************
I need help with loop one function and creating variables - code below doesn't work
*****************************************************
names = ['xx','yy','cc'] for name in names: exec("%s_mar = []" % name) some code... else: pass xx_var = countAll(xx_mar) yy_var = countAll(yy_mar) cc_var = countAll(cc_mar)***********************************************************
I need help with loop one function and creating variables - code below doesn't work
for name in names: eval("%s_var)" % name) = countAll('{0}_mar'.format(name)) else: pass