In <mailman.39.1473302345.2411.python-l...@python.org> Joaquin Alzola <joaquin.alz...@lebara.com> 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 gor...@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies" -- https://mail.python.org/mailman/listinfo/python-list