개인 공부/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)로 분류