# Execute Python Code

Executing Python code with parameters passed from the script and back. An example of this block's operation can be seen in the following video: <http://sherparpa.ru/videos/ru/invokepythoncode.mp4>

<table data-header-hidden><thead><tr><th width="248" valign="top"></th><th width="307" valign="top"></th></tr></thead><tbody><tr><td valign="top">Configuration</td><td valign="top">[Text] Configuration string. To edit the value, you need to use the button on the "Edit" block.</td></tr><tr><td valign="top">Standard Output</td><td valign="top">[Text] After the script is executed, this variable will contain the value of the standard output stream (stdout). For example, when using the <code>print</code> statement in the script, its value will be contained in this variable.</td></tr><tr><td valign="top">Error Handling Level</td><td valign="top"><p>Select the error handling level. Possible values:</p><ul><li>"Default" - by default;</li><li>"Ignore" - errors are ignored;</li><li>"Handle" - errors are handled.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Message Level</td><td valign="top"><p>Select the message level that the blocks will output during operation. Possible values:</p><ul><li>"Default" - by default;</li><li>"Release" - output is disabled;</li><li>"Debug" - outputs main information;</li><li>"Detailed" - outputs detailed information.</li></ul><p>If "Default" is selected, the value from the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Error Text</td><td valign="top">[Text] Returns detailed information about the error in case of incorrect execution of the block's work.</td></tr></tbody></table>

### The operation of this block is demonstrated in the video:

{% embed url="<https://sherparpa.ru/ucontent/?wlam>" %}
