The issue comes from how the shell interprets quotes when passing commands to exec, Try triple quotes :
exec
Execute('print("""hello world""")')