# 입력 - 입력받기

### 코드

{% code title="입력받는 창에 힌트를 보여주지 않을 때" %}

```
입력받기
```

{% endcode %}

{% code title="입력받는 창에 힌트를 보여줄 때" %}

```
{힌트 문자열} 입력받기
```

{% endcode %}

***

### 설명

<mark style="color:purple;">`입력받기`</mark>는 기본 입력 함수로, 원하는 데이터를 입력할 수 있어요.

***

### 주의사항

* 입력한 데이터는 숫자만 입력하면 숫자로, 문자열은 문자열로 자동 처리돼요.

***

### 파이썬 대응 코드

```
input()
```

***

### 예시

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

```
변수1 = 입력받기
변수2 = "변수2에 들어갈 데이터를 알려줘!" 입력받기
숫자1 = "숫자1을 알려줘!" 입력받기
숫자2 = "숫자2를 알려줘!" 입력받기

변수1 보여주기  # [변수를 출력하는 것으로, 입력과 무관합니다]
변수2 보여주기  # [변수를 출력하는 것으로, 입력과 무관합니다]
숫자1 보여주기  # [변수를 출력하는 것으로, 입력과 무관합니다]
숫자2 보여주기  # [변수를 출력하는 것으로, 입력과 무관합니다]
```

{% endcode %}

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

```
{사용자가 입력한 데이터1}
{사용자가 입력한 데이터2}
{사용자가 입력한 데이터3}
{사용자가 입력한 데이터4}
```

{% 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/007.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.
