title: List not being sorted by BubbleSort
body: <p>Have a bubblesort program that I would like emails to be sorted into alphabetical order. However when I run the program with the List I would like to be sorted I get the error TypeError: 'tuple' object does not support item assignment.
  Here is the code:</p>
  
  <pre><code>def BubbleSort(logindata):
      NoSwaps = 1
      N = len(logindata)
      while NoSwaps == 1:
          Count = 1
          NoSwaps = 0
          for Count in range(N-1):
              if logindata[Count] &gt; logindata[Count+1]:
                  temp = logindata[Count]
                  logindata[Count] = logindata[Count+1]
                  logindata[Count+1]=temp
                  NoSwaps=1
      return logindata
  
  if __name__ == "__main__":
      logindata=["tom@gmail.com","Password1"],["Harry","Password2"],["Jake","Password3"]
      BubbleSort(logindata)
      print(logindata)
  </code></pre>
  
  <p>The program sorts a list without the 'Passwords'. How would I get the code to run and successfully sort it.</p>