# 반복문 (리스트) - 반복

### 코드

```
반복 {리스트 이름} 의 {리스트 데이터가 저장될 변수 이름} 마다
    {반복할 코드}
```

***

### 설명

<mark style="color:purple;">`반복문`</mark>은 원하는 코드를 여러 번 반복해서 실행할 수 있게 하는 코드예요.

***

### 주의사항

* 딱히 없습니다!

***

### 파이썬 대응 코드

```
for i in array:
    # 반복할 코드
```

***

### 예시

{% code title="예시 코드" %}

```
리스트1 = ["가", "나", "다", "라", "마"]
반복 리스트1 의 출력할데이터 마다
    "지금 반복 중인 데이터 : " + 출력할데이터 보여주기  # [문자열과 변수를 출력하는 것으로, 반복문과 무관합니다]
```

{% endcode %}

{% code title="예시 코드의 출력" %}

```
지금 반복 중인 횟수 : 가
지금 반복 중인 횟수 : 나
지금 반복 중인 횟수 : 다
지금 반복 중인 횟수 : 라
지금 반복 중인 횟수 : 마
```

{% endcode %}


---

# 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://codebook.horang.it/readme/011.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.
