Assuming you know how to read data from the file and line breaks in the list, and convert them intas required.
s1 = ['foo', 'bar', 'etc']
n1 = [1, 2, 3]
dict(zip(s1, n1))
gives:
{'bar': 2, 'etc': 3, 'foo': 1}
Notes:
zip () concatenates your lists:
zip(s1, n1)
[('foo', 1), ('bar', 2), ('etc', 3)]
, split()
line = line.split(',') #'foo,bar,etc' => ['foo','bar','etc'] / '1,2,3' => ['1','2','3']
int, :
n1 = [int(n) for n in line] # ['1','2','3'] => [1, 2, 3]