I am trying to use print inside lambda. Something like that:
lambda x: print x
I understand, that in
If you don't want to import from __future__ you can just make the lambda write to the standard output:
import from __future__
lambda
>>>import sys >>>l = lambda x : sys.stdout.write(x) >>>l('hi') 'hi'