+ 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)
4th Dec 2018, 4:25 PM
Dlite
Dlite - avatar
0
What do you mean by executing s string
4th Dec 2018, 4:18 PM
Dlite
Dlite - avatar