지 구 여 행

Python_변수(Variables):list 본문

개인 공부/Python_Study

Python_변수(Variables):list

COSMOSUNION 2022. 5. 20. 20:09

 

⊙ 변수(Variables)의 종류

1. Number : 정수 (2, 3, 4)

2. String : 텍스트 (like this)
3. boolean : True / False (첫 글자 대문자 ㅣ JS에서는 전부 소문자)

4. float : 실수 (3.12)

5. None : null in JS

 

in JS, Camel Case : superLongVariables

in Python, Snake Case :  super_long_variables (단어간 밑줄_ 사용)

 

⊙ 열거형 타입(Sequence Type) :

ex) days=["Mon","Tue","Wed","Thur"."Fri"]

> print(type(days))

<class'list'> 더이상 string이 아닌 list(common,mutable)로 분류

  

The Standard Python Library(https://docs.python.org/3/library/stdtypes.html#sequence-types-list-tuple-range)
The Standard Python Library(https://docs.python.org/3/library/stdtypes.html#sequence-types-list-tuple-range)

 

 

 

'개인 공부 > Python_Study' 카테고리의 다른 글

Python_인자(Arguments)  (0) 2022.05.21
Python_리턴(Return)  (0) 2022.05.21
Python_함수(Function)  (0) 2022.05.21
Python_변수(Variables):Tuples, Dicts  (0) 2022.05.21
python_설치 후 연동  (0) 2022.05.20
Comments