python - string vs list types and NoneType
<p>Why does this evaluate to type string:</p>

<pre><code>&gt;&gt;&gt; strng = 'spam'
&gt;&gt;&gt; type(strng.replace('a', 'A')) 
&gt;&gt;&gt; &lt;type 'str'&gt;
</code></pre>

<p>but this evaluates to type NoneType?</p>

<pre><code>&gt;&gt;&gt; list_a = ['spam']
&gt;&gt;&gt; type(list_a.append('eggs')) 
&gt;&gt;&gt; &lt;type 'NoneType'&gt;
</code></pre>

<p>Thanks, Frank</p>
