# 07.ห้าเหลี่ยมหลายรูป

{% code lineNumbers="true" fullWidth="true" %}

```python
from turtle import *  # นำเข้าฟังก์ชันทั้งหมดจากโมดูล turtle
pensize(10)  # ตั้งความหนาของปากกาเป็น 10 หน่วย
pencolor('blue')  # ตั้งสีของเส้นปากกาเป็นสีน้ำเงิน
for y in range(10):  # วนลูป 10 ครั้ง โดยแต่ละครั้งจะวาดรูปดาวหนึ่งรูป
    for x in range(5):  # วนลูป 5 ครั้ง ในแต่ละรอบจะวาดเส้นหนึ่งด้านของดาว
        fd(100)  # เคลื่อนที่ไปข้างหน้า 100 หน่วย เพื่อวาดเส้น
        rt(360/5)  # หมุนกระดองเต่าไปทางขวา 72 องศา (360 องศาหาร 5) เพื่อเตรียมวาดเส้นต่อไปของดาว
    lt(360/10)  # หมุนกระดองเต่าไปทางซ้าย 36 องศา (360 องศาหาร 10) เพื่อเริ่มวาดดาวถัดไปในตำแหน่งที่หมุนไป
mainloop()  # รันหน้าต่างกราฟิกค้างไว้จนกว่าจะปิด เพื่อให้สามารถเห็นภาพที่วาด
```

{% endcode %}

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


---

# 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://krootee.gitbook.io/python-turtle/1.example01-10/07..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.
