Python의 데이터 타입
Jason Myers
Instructor
TrueFalse대소문자에 유의하세요. Python과 다른 언어를 오갈 때 혼동될 수 있습니다.
out_of_cookies = True
if out_of_cookies:
print("Run to the store NOW!")
Run to the store NOW!
apples=2
if apples:
print("We have apples.")
"We have apples."
apples=0
if apple:
print('We have apples.')
1"Cookies"["Cake", "Pie"]{"key": "value"}0""[]{}Nonecookie_qty == 3
== 같음!= 같지 않음< 보다 작음<= 작거나 같음> 보다 큼>= 크거나 같음x = 0.1 + 1.1
x == 1.2
False
print(x)
1.2000000000000002
부동소수점의 동등 비교에 주의하세요!
Python의 데이터 타입