# Learning Python 3 with Kittenblock

A Python editor has been integrated into KittenBlock, while many programming blocks are powered by Python code.

If you wish to learn Python, this Python editor is a good start.

### Using the Python Editor

Read [Python Editor Interface](/programming-platforms/kittenblock/kittenblock-functions-and-features/kittenblock-unique-features/python-editor.md) to learn the interface of the editor.

Click the switch in the upper right corner to toggle Python mode.

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

Type in the Python code in this editor.

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

Click play to run the code.

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

### Python and Programming Blocks

The programming blocks can be translated into Python code with just one-click of a button. This can be very useful in learning the the indentations, logic or language of Python.

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

Python code can also be generated by directly dragging the programming blocks into the editor.

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

The programming results can be represented by the stage for visual feedback.

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


---

# 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/learning-python-3-with-kittenblock.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.
