1. 숫자형 (Numeric Types)

특징:

예제:


# 정수형
a = 10
print(type(a))  # <class 'int'>

# 실수형
b = 3.14
print(type(b))  # <class 'float'>

# 복소수형
c = 2 + 3j
print(type(c))  # <class 'complex'>. **문자열** (String)

특징:

예제:

text = "Hello, Python!"
print(type(text))  # <class 'str'>
print(text[0])     # 'H' (인덱싱)
print(text[7:13])  # 'Python' (슬라이싱)
print(text.lower())  # 'hello, python!' (소문자로 변환)

3. 리스트 (List)

특징: