Python user input and mathematical operation error <pre><code>&gt;&gt;&gt; g = input("Enter a number") Enter a number43 &gt;&gt;&gt; g + 2 Traceback (most recent call last): File "&lt;pyshell#7&gt;", line 1, in &lt;module&gt; g + 2 TypeError: Can't convert 'int' object to str implicitly </code></pre> <p>The program wont let me use the input variable in mathematical operations, like <code>g + 2</code></p>