> For the complete documentation index, see [llms.txt](https://nmdkims-organization.gitbook.io/python-hand-book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nmdkims-organization.gitbook.io/python-hand-book/day1./1.-numbers-strings-lists-dictionaries/numbers.md).

# 숫자형(numbers)

기본 데이터 중 숫자형으로 구성된 것에 대한 예제 입니다.

{% hint style="info" %}
**숫자형 말 그대로 숫자 형태를 가진 자료형 입니다.**
{% endhint %}

```python

# 정수형 <class 'int'>
integer = 100

print(type(integer))

# 실수형 <class 'float'>
float = 3.14

print(type(float))

```

{% hint style="info" %}
**사칙연산**
{% endhint %}

```python
x = 2
y = 4

print(x+y) # 6

print(x-y) # -2

print(x*y) # 8

print(x/y) # 0.5

print(x**y) # 제곱 16

# 나눗셈 몫, 나머지
print(x//y) # 0

print(x%y) # 2
```
