Returning a List
shivaji_tn at yahoo.com
Fri Oct 3 13:35:38 CEST 2014
I might be doing something really silly here, but I can't seem to spot it:
for a in words:
if a == 'x':
b = sorted(b)
c = sorted(c)
print('d = ',d)
front_x(['bbb', 'ccc', 'axx', 'xzz', 'xaa'])
Why is return d or return b+c not returning anything??
The d's value is confirmed by the print statement.
More information about the Python-list