sort() function does not give the expected result
<p>I am a beginner to Python, and I was trying to get the below posted Python code to work but unfortunately, it does not give me the expected or the correct result.</p>

<p>I am trying to sort a simple list contains numbers using the built-in method sort() and after executing the program I get NONE as a result.</p>

<p>Please guide me to solve this problem.</p>

<p><strong>Python code</strong></p>

<pre><code>a=[7,4,0,-5,30,2,11,84,6]
b=a.sort()
print(b)
</code></pre>
