Skip to content

Commit abeb87a

Browse files
authored
Update 03_operators.md
1 parent d43714c commit abeb87a

1 file changed

Lines changed: 52 additions & 52 deletions

File tree

korean/03_Day_Operators/03_operators.md

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -17,50 +17,50 @@
1717

1818
![30DaysOfPython](../images/[email protected])
1919

20-
- [📘 Day 3](#-day-3)
21-
- [Boolean](#boolean)
22-
- [Operators](#operators)
23-
- [Assignment Operators](#assignment-operators)
24-
- [Arithmetic Operators:](#arithmetic-operators)
25-
- [Comparison Operators](#comparison-operators)
26-
- [Logical Operators](#logical-operators)
27-
- [💻 Exercises - Day 3](#-exercises---day-3)
20+
- [📘 3일차](#3일차)
21+
- [불리언](#불리언)
22+
- [연산자](#연산자)
23+
- [대입 연산자](#대입 연산자)
24+
- [산술 연산자:](#산술 연산자)
25+
- [비교 연산자](#비교 연산자)
26+
- [논리 연산자](#논리 연산자)
27+
- [💻 3일차: 실습](#3일차: 실습)
2828

29-
# 📘 Day 3
29+
# 📘 3일차
3030

31-
## Boolean
31+
## 불리언
3232

33-
A boolean data type represents one of the two values: _True_ or _False_. The use of these data types will be clear once we start using the comparison operator. The first letter **T** for True and **F** for False should be capital unlike JavaScript.
34-
**Example: Boolean Values**
33+
불리언 데이터 타입은 True 또는 False 두 값 중 하나를 나타냅니다. 비교 연산자를 사용하면 이 데이터 타입의 사용이 명확해질 것입니다. 첫 번째 문자 **T** 는 참, **F** 는 거짓으로 표현되는 자바 스크립트와 달리 대문자여야 합니다.
34+
**예시: 불리언 값**
3535

3636
```py
3737
print(True)
3838
print(False)
3939
```
4040

41-
## Operators
41+
## 연산자
4242

43-
Python language supports several types of operators. In this section, we will focus on few of them.
43+
파이썬은 몇 가지 타입의 연산자를 지원합니다. 이 섹션에서 이것에 대해 알아볼 것입니다.
4444

45-
### Assignment Operators
45+
### 대입 연산자
4646

47-
Assignment operators are used to assign values to variables. Let us take = as an example. Equal sign in mathematics shows that two values are equal, however in Python it means we are storing a value in a certain variable and we call it assignment or a assigning value to a variable. The table below shows the different types of python assignment operators, taken from [w3school](https://www.w3schools.com/python/python_operators.asp).
47+
대입 연산자는 변수에 값을 대입할 때 사용됩니다. = 로 예시를 들어보겠습니다. 수학에서 등호란 두 값이 동일하다는 것을 의미하지만, 파이썬에서는 특정 변수가 값을 가지고 있으며, 이 변수에 값을 대입한다고 합니다. 아래 표는 [w3school](https://www.w3schools.com/python/python_operators.asp)에서 가져온 다양한 유형의 파이썬 할당 연산자를 보여줍니다.
4848

49-
![Assignment Operators](../images/assignment_operators.png)
49+
![대입 연산자](../images/assignment_operators.png)
5050

51-
### Arithmetic Operators:
51+
### 산술 연산자:
5252

53-
- Addition(+): a + b
54-
- Subtraction(-): a - b
55-
- Multiplication(*): a * b
56-
- Division(/): a / b
57-
- Modulus(%): a % b
58-
- Floor division(//): a // b
59-
- Exponentiation(**): a ** b
53+
- 더하기(+): a + b
54+
- 빼기(-): a - b
55+
- 곱하기(*): a * b
56+
- 나누기(/): a / b
57+
- 나머지 연산(%): a % b
58+
- 버림 나눗셈(//): a // b
59+
- 지수(**): a ** b
6060

61-
![Arithmetic Operators](../images/arithmetic_operators.png)
61+
![산술 연산자](../images/arithmetic_operators.png)
6262

63-
**Example:Integers**
63+
**예시: Integers**
6464

6565
```py
6666
# Arithmetic Operations in Python
@@ -69,42 +69,42 @@ Assignment operators are used to assign values to variables. Let us take = as an
6969
print('Addition: ', 1 + 2) # 3
7070
print('Subtraction: ', 2 - 1) # 1
7171
print('Multiplication: ', 2 * 3) # 6
72-
print ('Division: ', 4 / 2) # 2.0 Division in Python gives floating number
72+
print ('Division: ', 4 / 2) # 2.0 파이썬의 나누기는 부동 소수를 제공합니다.
7373
print('Division: ', 6 / 2) # 3.0
7474
print('Division: ', 7 / 2) # 3.5
75-
print('Division without the remainder: ', 7 // 2) # 3, gives without the floating number or without the remaining
75+
print('Division without the remainder: ', 7 // 2) # 3, 부동 소수 또는 나머지가 없는 값을 제공합니다.
7676
print ('Division without the remainder: ',7 // 3) # 2
77-
print('Modulus: ', 3 % 2) # 1, Gives the remainder
78-
print('Exponentiation: ', 2 ** 3) # 9 it means 2 * 2 * 2
77+
print('Modulus: ', 3 % 2) # 1, 나머지를 제공합니다.
78+
print('Exponentiation: ', 2 ** 3) # 9 2 * 2 * 2 를 의미합니다.
7979
```
8080

81-
**Example:Floats**
81+
**예시: Floats**
8282

8383
```py
8484
# Floating numbers
8585
print('Floating Point Number, PI', 3.14)
8686
print('Floating Point Number, gravity', 9.81)
8787
```
8888

89-
**Example:Complex numbers**
89+
**예시: 복소수**
9090

9191
```py
9292
# Complex numbers
9393
print('Complex number: ', 1 + 1j)
9494
print('Multiplying complex numbers: ',(1 + 1j) * (1 - 1j))
9595
```
9696

97-
Let's declare a variable and assign a number data type. I am going to use single character variable but remember do not develop a habit of declaring such types of variables. Variable names should be all the time mnemonic.
97+
변수를 선언하고 숫자 데이터 유형을 지정합니다. 여기서는 단일 문자 변수를 사용할 것이지만, 이런 유형의 변수를 선언하는 습관은 좋지 않다는 것을 기억하셔야 합니다. 변수 이름은 항상 기억해야 합니다.
9898

9999
**Example:**
100100

101101
```python
102-
# Declaring the variable at the top first
102+
# 첫 번째로 변수를 먼저 선언합니다.
103103

104-
a = 3 # a is a variable name and 3 is an integer data type
105-
b = 2 # b is a variable name and 3 is an integer data type
104+
a = 3 # a는 변수의 이름이며 정수 데이터 타입입니다.
105+
b = 2 # b는 변수의 이름이며 정수 데이터 타입입니다.
106106

107-
# Arithmetic operations and assigning the result to a variable
107+
# 산술 연산 및 결과를 변수에 대입합니다.
108108
total = a + b
109109
diff = a - b
110110
product = a * b
@@ -113,8 +113,8 @@ remainder = a % b
113113
floor_division = a // b
114114
exponential = a ** b
115115

116-
# I should have used sum instead of total but sum is a built-in function - try to avoid overriding built-in functions
117-
print(total) # if you do not label your print with some string, you never know where the result is coming from
116+
# sum 대신 total을 사용했어야 하지만 sum은 내장 함수입니다. 내장 함수를 재정의하지 않도록 하십시오.
117+
print(total) # 만약 몇몇 출력에 문자열로 표시를 하지 않는다면, 어디서 결과가 오는지 알지 못할 것입니다.
118118
print('a + b = ', total)
119119
print('a - b = ', diff)
120120
print('a * b = ', product)
@@ -129,55 +129,55 @@ print('a ** b = ', exponentiation)
129129
```py
130130
print('== Addition, Subtraction, Multiplication, Division, Modulus ==')
131131

132-
# Declaring values and organizing them together
132+
# 값을 선언하고 함께 정리
133133
num_one = 3
134134
num_two = 4
135135

136-
# Arithmetic operations
136+
# 산술 연산
137137
total = num_one + num_two
138138
diff = num_two - num_one
139139
product = num_one * num_two
140140
div = num_two / num_one
141141
remainder = num_two % num_one
142142

143-
# Printing values with label
143+
# 레이블로 값 출력
144144
print('total: ', total)
145145
print('difference: ', diff)
146146
print('product: ', product)
147147
print('division: ', div)
148148
print('remainder: ', remainder)
149149
```
150150

151-
Let us start start connecting the dots and start making use of what we already know to calculate (area, volume,density, weight, perimeter, distance, force).
151+
이제 점 연결을 시작하고 이미 알고 있는 계산 방법(면적, 부피, 밀도, 무게, 둘레, 거리, 힘)을 사용해 보겠습니다.
152152

153153
**Example:**
154154

155155
```py
156-
# Calculating area of a circle
157-
radius = 10 # radius of a circle
158-
area_of_circle = 3.14 * radius ** 2 # two * sign means exponent or power
156+
# 원의 넓이 계산
157+
radius = 10 # 원의 반지름
158+
area_of_circle = 3.14 * radius ** 2 # 두 개의 * 기호는 지수를 의미합니다
159159
print('Area of a circle:', area_of_circle)
160160

161-
# Calculating area of a rectangle
161+
# 직사각형의 넓이 계산
162162
length = 10
163163
width = 20
164164
area_of_rectangle = length * width
165165
print('Area of rectangle:', area_of_rectangle)
166166

167-
# Calculating a weight of an object
167+
# 개체의 무게 계산
168168
mass = 75
169169
gravity = 9.81
170170
weight = mass * gravity
171-
print(weight, 'N') # Adding unit to the weight
171+
print(weight, 'N') # 무게에 단위 추가
172172

173-
# Calculate the density of a liquid
173+
# 액체의 밀도 계산
174174
mass = 75 # in Kg
175175
volume = 0.075 # in cubic meter
176176
density = mass / volume # 1000 Kg/m^3
177177

178178
```
179179

180-
### Comparison Operators
180+
### 비교 연산자
181181

182182
In programming we compare values, we use comparison operators to compare two values. We check if a value is greater or less or equal to other value. The following table shows Python comparison operators which was taken from [w3shool](https://www.w3schools.com/python/python_operators.asp).
183183

0 commit comments

Comments
 (0)