I have (let´s suppose only) two file_names:
file_name1 = 'stock1'
file_name2 = 'stock2'
The code below does what we expect:
for i in range(1,3,1):
string_name = 'file_name{}'.format(i)
print(string_name)
Question: how should I change the string_name line above if my initial file_names are not:
file_name1 = 'stock1'
file_name2 = 'stock2'
but they are:
file_name1 = 'stock1.split('/')'
file_name2 = 'stock2.split('/)'
where the split is there for other purposes that do not present any trouble?
Thanks!