Use Pythonic item access (#164)
parent
b95fa5b691
commit
e151d71572
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue