From e151d71572f20c0d24b1cf97fc5baa968ae0a8ee Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Mon, 12 Apr 2021 12:02:56 +0200 Subject: [PATCH] Use Pythonic item access (#164) --- sorting/python/bubble-sort.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)