# 4.3.3.     파이썬 식별자(Identifiers)

\
파이썬 식별자는 변수, 함수, 클래스, 모듈 또는 다른 객체를 식별하는데 사용되는 이름을 뜻합니다. 식별자는 문자 A부터 Z 또는 a에서 z 또는 밑줄 (\_)로 시작하며 한 개 또는 그 이상의 문자로 구성됩니다. 파이썬에서는 @, $, %와 같은 특수 문자를 식별자 내에서 사용할 수 없습니다. 파이썬은 대소 문자를 구별하는 프로그래밍 언어이기 때문에 Manpower와 manpower는 Python에서 두 개의 다른 식별자로 처리됩니다. 다음은 Python 식별자의 명명 규칙입니다.

* &#x20;       클래스 이름은 대문자로 시작합니다. 다른 모든 식별자는 소문자로 시작합니다.
* &#x20;       1개의 밑줄로 시작: 내부적으로 사용되는 변수입니다.
* &#x20;       1개의 밑줄로 종료: 파이썬 기본 키워드와 충돌을 피하려고 사용됩니다.
* &#x20;       2개의 밑줄로 시작: 클래스 속성으로 사용합니다.
* &#x20;       2개의 밑줄로 종료: 사용자가 조정할 수 있는 네임스페이스 안의 속성입니다.
* &#x20;       식별자는 숫자로 시작될 수 없다. 1variable은 오류이지만 variable1 은 괜찮다.
* &#x20;       키워드는 식별자로 사용할 수 없다.
* &#x20;       !, @, #, $, % 등 특수 기호는 우리 식별자에서 사용할 수 없다.
* &#x20;       식별자의 길이는 제한이 없다.

python3에서는 유니코드 문자를 식별자로 사용할 수 있습니다. 즉, 한글로도 변수명을 지을 수 있지만 권장되지는 않는다고 합니다.


---

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