I am trying to open various text files simulataneously in python. I want to assign a unique name to each file. I have tried the follwoing but it is not working:
for a in [1,2,11]:
"DOS%s"%a=open("DOS%s"%a,"r")
Instead I get this error:
SyntaxError: can't assign to operator
What is the correct way to do this?