Created
February 23, 2019 05:21
-
-
Save cuahutli/e0144e0f823b4bf2f786e95c83749d1c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
code = """ | |
def f(x): | |
x = x + 1 | |
print("Montamos la función on the fly") | |
return x | |
#print('This is my output.') | |
""" | |
exec(code) | |
res = f(4) | |
print("el resultado es: " + str(res)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment