title: Trying to make a quick-sort function that changes the orginal list however it wouldn't make any change on it
body: <p>Here is the code. I'm not sure why it's not working am still a beginner by the way:</p>
  <pre><code>def quick_sort(L):
    if len(L)&gt;1:
      L1=[]
      L2=[]
      for i in range(1,len(L)):
        if L[i]&lt;=L[0]:
          L1.append(L[i])
        elif L[i]&gt;=L[0]:
          L2.append(L[i])
      quick_sort(L1)
      quick_sort(L2)
      L=L1+[L[0]]+L2
  </code></pre>
  <p>I even tried to do only the first step using the code below but the list wouldn't change:</p>
  <pre><code>def quick_sort(L):
    if len(L)&gt;1:
      L1=[]
      L2=[]
      for i in range(1,len(L)):
        if L[i]&lt;=L[0]:
          L1.append(L[i])
        elif L[i]&gt;=L[0]:
          L2.append(L[i])
      L=L1+[L[0]]+L2
  </code></pre>