In <[email protected]> Joaquin Alzola
<[email protected]> writes:
> Use the split
> a.split(",")
> for x in a:
> print(x)
This won't work. split() returns a list of split elements but the
original string remains unchanged.
You want something like this instead:
newlist = a.split(",")
for x in newlist:
print(x)
--
John Gordon A is for Amy, who fell down the stairs
[email protected] B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
--
https://mail.python.org/mailman/listinfo/python-list