+ 1
Let's say you have a file containing this source-code called myCode.py
age = 27
msg = "I am "+ (str(age)) + " years old"
print(msg);
if you want to execute that code, you'll have to open the file, read it's contents and execute them.
exec(open("myCode.py").read)
0
What do you mean by executing s string