filmov
tv
python - use exec and compile to run code found in another python file

Показать описание
An alternative to using compile and exec would be to add a function in the import file. The function shall contain all code that needs to be executed in the user python program.