title: Python sort method is not working inside the user defined function
body: <p>Can anyone please tell whats wrong with this code? I need to output the sorted list and the reverse list</p>
  
  <pre><code>def sort_num():
      count=1;
      global a
      a=[]
      while count&lt;11:
          no=int(raw_input("no %d:" %count))
          a.append(no)
          count+=1
      print a
      print a.reverse()
      print a.sort()
  </code></pre>
  
  <p>and my output is:</p>
  
  <pre><code>[2, 33, 4, 11, 7, 8, 5, 6, 33, 0]
  None
  None 
  </code></pre>