am getting a typeerror while executing python program
<p>I have typed </p>

<pre><code>x = input("enter name: ")
Print ("hey") + x
</code></pre>

<p>But when compiled am getting</p>

<pre><code>Typeerror: unsupported operand type(s) for +: 'nonetype' and 'str'
</code></pre>

<p>I'm using python 3.6.0b1.</p>

<p>print() is a function call which takes a string, so you need to pass the string inside the brackets to the function call like so;</p>

<pre><code>x = input("enter name: ")
print ("hey " + x)
</code></pre>

<p>Further reading on print() is available here: <a href="https://docs.python.org/3/tutorial/inputoutput.html" rel="nofollow">https://docs.python.org/3/tutorial/inputoutput.html</a></p>

python typeerror