# Python Editor

The Python Editor allows easy coding with Python on KittenBlock. Let’s take a closer look at the features it provides.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/python1.png)

### 1. Auto Translation

Programming blocks are automatically translated into Python code when this box is ticked.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/python2.png)

### 2. Manual Translation

Press this button to translate the programming blocks into Python code.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/python3.png)

### 3. Edit

Open or save the Python file.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/python4.png)

### 4. Run/Upload

Run the code or upload the code to the hardware.

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/python5.png)

![](https://kittenbothk-eng.readthedocs.io/en/latest/_images/python6.png)


---

# 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://sharinghub-eng.kittenbot.hk/programming-platforms/kittenblock/kittenblock-functions-and-features/kittenblock-unique-features/python-editor.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.
