docs.python.org
Built-in Functions — Python 3.11.18 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).