On 09/08/2016 07:57 AM, John Gordon wrote:
In <[email protected]> Joaquin Alzola <[email protected]> writes:Use the splita.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)
Even easier...
for x in a.split(','):
print(x)
--
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
