> For the complete documentation index, see [llms.txt](https://sdc-james.gitbook.io/onebook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sdc-james.gitbook.io/onebook/3./3.3./3.3.8.-variables.md).

# 4.3.8.     파이썬 변수(Variables)

파이썬 변수는 메모리 공간을 예약하기 위해 명시적으로 선언할 필요가 없습니다. 선언은 변수에 값을 할당하면 자동으로 처리됩니다. 등호(=)는 변수에 값을 할당하는 데 사용됩니다.

#### =(대입연산자)는 우변의 값을 좌변에 넣으라는 뜻 입니다.

\= 연산자 왼쪽의 피연산자는 변수의 이름이고 = 연산자 오른쪽의 피연산자는 변수에 저장된 값입니다. 예를 들어&#x20;

```
counter = 100          # An integer assignment
miles   = 1000.0       # A floating point
name    = "John"       # A string

print counter
print miles
print name
```

여러 개 변수에 동일한 값을 동시에 할당하려면 다음과 같이 사용합니다.

```
a = b = c = 1
```

여러 변수에 여러 개 값을 동시에 지정할 수도 있습니다. 예를 들어

```
a,b,c = 1,2,"john"
```

위의 예에서는 a, b 변수에는 정수 1이 저장되고 c 변수에는 “john"을 갖는 하나의 문자열이 할당됩니다.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://sdc-james.gitbook.io/onebook/3./3.3./3.3.8.-variables.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.
