From cd92da5185443dce64e8594edfa015a90e63acd8 Mon Sep 17 00:00:00 2001 From: Konstantinos Tsikkinis Date: Thu, 31 Jan 2019 12:10:10 +0200 Subject: [PATCH] Variable name edit --- contents/bubble_sort/code/python/bubblesort.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contents/bubble_sort/code/python/bubblesort.py b/contents/bubble_sort/code/python/bubblesort.py index 19dd19858..18485a73c 100644 --- a/contents/bubble_sort/code/python/bubblesort.py +++ b/contents/bubble_sort/code/python/bubblesort.py @@ -9,9 +9,9 @@ def bubble_sort(array): array[j], array[j+1] = array[j+1], array[j] #swap elements in the list def main(): - number = [random.randint(0, 1000) for _ in range(10)] - print("Before Sorting {}".format(number)) - bubble_sort(number) - print("After Sorting {}".format(number)) + random_array = [random.randint(0, 1000) for _ in range(10)] + print("Before Sorting {}".format(random_array)) + bubble_sort(random_array) + print("After Sorting {}".format(random_array)) main()