I\'m trying to assign a print statement to a variable in a function:
def namer(fn, ln=\'Smith\'): # return value, default value r = print \"Your name is
As you noted, in Python2.x, print is a statement. A statement is not an object, you cannot assign it to anything, you can just execute it.
print
Why would you want to return the print statement? Why not the string to be printed or a function that, when called would execute the print statement?