open_in_new
content_copy
import ast with open('filename.txt', 'r') as f: mylist = ast.literal_eval(f.read())