728x90
Chapter 4. Datatype
1. Datatype
⦁ 자료형은 각각의 클래스를 가지고 있음
⦁ 파이썬은 자료형을 선언하지 않아도 자동으로 구분하여 사용함
2. Example
a. datatype
a = 10
print(type(a))
b = 10.5
print(type(b))
c = 'abcd'
print(type(c))
d = True
print(type(d))
//결과//////////////////
<class 'int'>
<class 'float'>
<class 'str'>
<class 'bool'>