I have a file with one sigle long line. The lines contains nested list where each elements contains some integers and strings as given in the code example:
sl = [
    [127390,175493,530,1073310,2376580,"Mi:DR 96AII,Yt:DR 94A,AFA:DR 96b","26:17 tooth holes 
    (horizontal \/ vertical)\r\nwar print\r\nnew numbering, coarse impression, online YT catalog 
    2020","Unveiling of the monument of Emperor William I, Berlin"], 
    [127397,57201,530,2607693,2376580,"Mi:DR 103a,Sn:DE 101,Yt:DR 102,Sg:DR 103","","Germania,inscr. 
    DEUTSCHES REICH"]
]
print(sl,type(sl)) # type is list
with open('l1.txt', 'r') as f:
    l1_list = f.read() # the txt file contains the same as the variable sl 
    print(l1_list, type(l1_list)) # type is string
How can the file contents be interpreted as a list or How can the contents be converted from strings of characters to a list (comma separated)
 
     
     
    