"Dr. Phillip M. Feldman" <pfeldman at verizon.net> writes: > if len(result)==1: return result[0] > if len(result)==2: return result[0], result[1] > > (and so on). Is there a cleaner way to accomplish the same thing? That is poor style. Just return the result as a list.