diff --git a/sorting/python/bubble-sort.py b/sorting/python/bubble-sort.py index 3e0be520..a5fb4301 100644 --- a/sorting/python/bubble-sort.py +++ b/sorting/python/bubble-sort.py @@ -17,5 +17,5 @@ def bubbleSort(arr): bubbleSort(arr) print("Sorted array is:") -for i in range(len(arr)): - print(arr[i]) +for item in arr: + print(item)