Run
code = 'mystring="Hello World"\nprint(mystring)' x = compile(code, '', 'exec') exec(x)
Output