Skip to content

Commit 0b9a2f2

Browse files
author
dodo
committed
Vorlage für die Bubblesortaufgabe
1 parent 9f1fb76 commit 0b9a2f2

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

Level_3/bubblesort.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env python3
2+
import random
3+
4+
def get_random_list(n):
5+
result = list(range(n))
6+
random.shuffle(result)
7+
return result
8+
9+
n = int(input("Länge der Liste: ")
10+
unsortet_list = get_random_list(n)
11+
12+
# Bitte die Zeilen 1-12 unverändert lassen

0 commit comments

Comments
 (0)