[Tutor] lists strings and files

Michael Haft m.haft at abdn.ac.uk
Wed Nov 9 18:08:22 CET 2005


Hello,
     thanks for all the help with lists and strings, the list I have has
nested sublists in it though. How do I remove these or is there a way
to convert from lists to strings without removing them?

The code looks something like:

result = []
data = [fields[1] fields[3] fields[7]]
result.append(data)
which gives a list containing 12 sublists

Appologies if the code isn't quite right I'm stuck on a library computer
in a strange German university and can't use my memory stick to check the
exact code.

Mike




More information about the Tutor mailing list