this is my code :
a = \\ \'\'\'def fun():\\n print \'bbb\' \'\'\' eval(a) fun()
but it shows error :
Traceback (most r
Eval evalutes only expressions, while exec executes statements.
So you try something like this
a = \ '''def fun():\n print 'bbb' ''' exec a fun()