> For the complete documentation index, see [llms.txt](https://scade.gitbook.io/scade-knowledge-base/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scade.gitbook.io/scade-knowledge-base/build-a-flow/how-to-add-python-code.md).

# How to add python code

Some authomation with python can come in hande

1. Locate the **Run Python code** node and add it to your workplace<br>

   <figure><img src="/files/IlxzMSp7xeyk5GWt14d3" alt=""><figcaption></figcaption></figure>

2. There is a single input in this node, make sure that the input's type is set to Python Code

3. The node will return data assigned to a variable `_result` . To get data from other nodes use syntax like this: `context[{node_id}][{input}]`<br>

   <figure><img src="/files/ya7cmLbeAWDh2ZrUP4Lx" alt=""><figcaption></figcaption></figure>
