blob: 8f3c009facac1cf7118a8fba15860758a705db25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import merge
import bubble
while True:
list = []
inp = ""
print("enter nums, then enter END")
while inp != "END":
inp = input("number: ")
if inp != "END":
list.append(inp)
sort = int(input("1) bubble, 2) merge: "))
if sort == 1:
print(*merge.sort(list), sep=", ")
else:
print(*bubble.sort(list), sep=", ")
|