"Emad Nawfal (عماد نوفل)" <emadnaw...@gmail.com> wrote

If there is a text file that has a list or number of lists in it, is there is a way to read the lists in the file as lists, and not as a string. Sample
file attached.

Not that I know of. If you made the file include assignments to variables or one big list with embedded lists inside you could eval() the file but that
is a huge security risk.

Alan G.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to