A problem with list
FBatista at uniFON.com.ar
Mon Dec 13 16:12:35 CET 2004
[export at hope.cz]
#- where my MyFile.txt looks like this:
The issue is that in the file you don't have a list, you have text, and
there is the difference in the behaviour.
>>> l = ['abc','def']
>>> for x in l:
>>> s = "['abc','def']"
>>> for x in s:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list