Dave Angel wrote: > exec is a statement, and statements don't have "return values." It's > not a function, In 3.x, it is a function, though the use of print as a statement indicates that the OP was using 2.x.