title: Bubble sort in Python, what are these arguments for?
body: <pre><code>def bbsort(list1):
      for passnum in range(len(list1)-1,0,-1):
          for i in range (passnum):
              if list1[i]&gt;list1[i+1]:
                  temp =list1[i]
                  list1[i] = list1[i+1]
                  list1[i+1] = temp
  </code></pre>
  
  <p>This is code for a bubble sort, but what is the use of <code>-1,0,-1</code> in the <code>while</code> condition?</p>