Python으로 시작하는 데이터 사이언스
Hillary Green-Lerman
Lead Data Scientist, Looker

name = "Bayes"
height = 24
weight = 75.5
my_var ≠ MY_VAR)# 유효한 변수명
bayes_weight
b
bayes42
# 유효하지 않은 변수명
bayes-height
bayes!
42bayes
bayes-height = 3
File "<stdin>", line 1
bayes-height = 3
^
SyntaxError: can't assign to operator
float: 정수 또는 소수 값을 나타냅니다
height = 24
weight = 75.5
string: 텍스트를 나타냅니다. 문자, 숫자, 공백, 특수문자를 포함할 수 있음
name = 'Bayes'
breed = "Golden Retriever"
owner = DataCamp
File "<stdin>", line 1, in <module>
owner = DataCamp
NameError: name 'DataCamp' is not defined
fur_color = "blonde'
File "<stdin>", line 1
fur_color = "blonde'
^
SyntaxError: EOL while scanning string literal
name = "Bayes"
height = 24
weight = 75
print(height)
24
Python으로 시작하는 데이터 사이언스