title: Bubble Sort Algorithm in Python - Last Number Not Sorting
body: <p>The algorithm sorts all the numbers except the first one, and sets it as last. Please help!</p>
  
  <pre><code>def bubbleSort(numbers): # Bubble Sort Algorithm
      numbers = list(numbers)
      i = 0
      j = 0
      for i in range(len(numbers)):
          for j in range(len(numbers) - i):
              if numbers[j] &lt; numbers[j-1]: 
                         temp = numbers[j-1]
                         numbers[j-1] = numbers[j]
                         numbers[j] = temp
  
      print numbers
      print numbers
  </code></pre>