title: Selection sort using python3
body: <pre><code>def selection_sort(li):
      new_list = []
      a = li[0]
      for x in range(1, len(li)):
          if li[x] &lt; a:
              a = li[x]
              new_list = a
      print(new_list)
  
  
  b = [1, 2, 5, 3, 7, 4]
  selection_sort(b)
  
  </code></pre>
  <p>Why does the above code returns empty list.
  Thank you</p>