Sorting: Bubble Sort

  • + 4 comments
    a[i], a[i+1] = a[i+1], a[i]
    

    Could you explain this line please?

    EDIT: Answer is here

    https://codeandchaos.wordpress.com/2014/11/15/swap-two-objects-in-python/