- #1

- 49

- 0

can anyone one point out the error?

Code:

```
def bubbleSort (theList):
size = len(theList) - 1
while (size > 0):
index = 0
while (index < size):
if (theList[index] > theList[index+1]):
temp = theList[index]
theList[index] = theList[index+1]
theList[index+1] = temp
index = index + 1
size = size - 1
print theList
```