Skip to content

Commit 1993cb9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent ad94248 commit 1993cb9

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

sorts/sleepsort.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@
44

55
items = []
66
n = int(input())
7-
for i in range(0,n):
8-
a = int(input())
9-
items.append(a)
7+
for i in range(0, n):
8+
a = int(input())
9+
items.append(a)
10+
11+
1012
def sleep_sort(i):
11-
sleep(i)
12-
print(i)
13+
sleep(i)
14+
print(i)
15+
16+
1317
[thread.start_new_thread(sleep_sort, (i,)) for i in items]

0 commit comments

Comments
 (0)