human
Converting a string into a list in Python
assistant
Here is some code to get a list of integers `lst` from a file `filename.txt`

lst = map(int, open('filename.txt').readlines())

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.