Python exec() built-in function

Python exec() built-in function

From the Python 3 documentation This function supports dynamic execution of Python code. object must be either a string or a code object. If it is a string, the string is parsed as a suite of Python statements which is then executed (unless a syntax error occurs) [...].