No list returned by random.shuffle() : <p>I wrote some code in two different ways which I thought were exacly equivalent but I got two very differnt answers:</p>

<p>This first way worked exactly as expected:</p>

<pre><code>test_listA = list(range(0, 5))
random.shuffle(test_listA)
print(test_listA)
</code></pre>

<p>It printed out:</p>

<pre><code>[2, 1, 0, 3, 4]
</code></pre>

<p>But when I reorganised it like so:</p>

<pre><code>test_listB = random.shuffle(list(range(0, 5)))
print(test_listB)
</code></pre>

<p>It prints out:</p>

<pre><code>None
</code></pre>

<p>Why the difference?</p>
