Skip to content

Commit 8025748

Browse files
authored
Update 2.py
1 parent 7c1c746 commit 8025748

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

6/2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
for j in range(i, 0, -1): # 인덱스 i부터 1까지 감소하며 반복하는 문법
55
if array[j] < array[j - 1]: # 한 칸씩 왼쪽으로 이동
66
array[j], array[j - 1] = array[j - 1], array[j]
7-
else: # 자기보다 작은 데이터를 만나면 그 위치에 멈춤
7+
else: # 자기보다 작은 데이터를 만나면 그 위치에서 멈춤
88
break
99

1010
print(array)

0 commit comments

Comments
 (0)