I would like to insert the value of a variable into the name of another variable in python. In a shell script this would be something like:
for n in `more list`
do
var_$n = some_calculation
done
but I can't see how to do a similar thing in python. Is there a way or should I be using an alternative approach?
thanks,
Andy