Use Pythonic item access (#164)
parent
b95fa5b691
commit
e151d71572
|
@ -17,5 +17,5 @@ def bubbleSort(arr):
|
||||||
bubbleSort(arr)
|
bubbleSort(arr)
|
||||||
|
|
||||||
print("Sorted array is:")
|
print("Sorted array is:")
|
||||||
for i in range(len(arr)):
|
for item in arr:
|
||||||
print(arr[i])
|
print(item)
|
||||||
|
|
Loading…
Reference in New Issue