Spyder not throwing the type error: unsupported operand type(s) for +: 'NoneType' and 'str'
<p>Hi guys I was working in Spyder on python 3 and trying to get some input from the user so i accidentally wrote  </p>

<pre><code>g = input(print("Give the letter: "))  
</code></pre>

<p>while it should be</p>

<pre><code>g = str(input("Give the letter: "))
</code></pre>

<p>But Spyder IPython console ran it and didn't said its a TypeError
but when I ran the code on an online python console it said that its a TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'.  </p>

<p>I know that its an error as print() returns None, so the input() is having both NoneType and str.  </p>

<p>So my question is why Spyder IPython console didn't mentioned this error?<a href="http://i.stack.imgur.com/sBmNd.png" rel="nofollow">enter image description here</a></p>

<p>try this : </p>

<pre><code>g = str(raw_input("Give the letter: "))
</code></pre>

python python-3.x