Skip to content

Commit cb3a441

Browse files
committed
Added Korean dictionary and examples to examples folder.
1 parent 7c59d27 commit cb3a441

4 files changed

Lines changed: 60 additions & 0 deletions

File tree

examples/kr/color.tpy

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
색깔 = 입력('색깔 입력: ')
2+
3+
일치 색깔:
4+
경우 '빨강':
5+
출력('빨강!')
6+
경우 '노랑':
7+
출력('속도를 줄이세요!')
8+
경우 '초록':
9+
출력('출발!')
10+
경우 _:
11+
출력('정의되지 않은 색깔!')

examples/kr/fibonacci.tpy

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
정의 피보나치(n: 정수):
2+
만약 n <= 1:
3+
귀환 n
4+
아니면:
5+
귀환 피보나치(n - 1) + 피보나치(n - 2)
6+
7+
숫자: 정수 = 정수(입력('숫자 입력: '))
8+
출력(피보나치(숫자))

examples/kr/kr.csv

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
None,
2+
int,정수
3+
float,소수
4+
str,글자
5+
bool,논리형
6+
True,
7+
False,거짓
8+
if,만약
9+
elif,아니면이라면
10+
else,아니면
11+
while,와중에
12+
break,탈출
13+
continue,연속
14+
for,위한
15+
return,귀환
16+
print,출력
17+
input,입력
18+
match,일치
19+
case,경우
20+
try,시도
21+
except,제외
22+
raise,발생
23+
class,계층
24+
self,속성
25+
def,정의
26+
in,
27+
range,범위
28+
not , 아님
29+
and , 그리고
30+
or , 혹은

examples/kr/prime_checker.tpy

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
정의 소수(n: 정수):
2+
만약 n <= 1:
3+
귀환 거짓
4+
5+
위한 i 안 범위(2, n):
6+
만약 n % i == 0:
7+
귀환 거짓
8+
귀환 참
9+
10+
숫자: 정수 = 정수(입력('숫자 입력: '))
11+
출력(소수(숫자))

0 commit comments

Comments
 (0)