If I were to read 10 input files and store them in variable names file1
, file2
, file3
etc that are dynamically created inside a for loop using string concatenation, how would I store the values in them?
For example,
'file'+'1'=pandas.read_csv(...)
doesn't work. What are the alternatives to create variables dynamically to store values that are available dynamically?