# 3.1 Dynamo's Python Node

#### Dynamo's Python Script Editor

The Python Script node comes with any default installation of Dynamo and, in many ways, it's just like any other node: it can be placed on the workspace, renamed and can take any number of inputs.

However, unlike other nodes, if you right-click and select **Edit...** a script editing window will appear, like so:

![By default, Dynamo will fill the editor with the above code](https://1200667159-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LqjgCN1whMnYsKXtYmV%2F-LxBU1XC8lMV8g232Obl%2F-LxBq43GvQLLrEeInkbk%2FPythonScriptEditor.jpg?alt=media\&token=7e2cd415-d4a3-4a89-a160-e1e6072e0a1a)

In this window, you are able to write IronPython scripts which will be directly executed as part of a Dynamo definition. To save your script, click the 'Accept Changes' button and then save the Dynamo definition it's in. Otherwise, click the 'Cancel' button to discard any changes made.

#### Are We There Yet?

You are \*so close\* to being able to write your first Python code for Dynamo! \
The final piece of the puzzle is to learn about boilerplate setup code, which you'll find in the next section in this chapter.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dynamopythonprimer.gitbook.io/dynamo-python-primer/getting-started/using-dynamos-python-node.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
