title: Python/Terminal - Why am I getting this error message when I try to get user input
body: <p>In VS code, I enter the following code:</p>
  <pre><code>print(&quot;Let me help you add 2 numbers&quot;)
  first_number = int(input(&quot;Enter your first number! &quot;))
  second_number = int(input(&quot;Enter your second number! &quot;))
  print(&quot;The total is&quot;, first_number + second_number)
  </code></pre>
  <p>Because I am using VS code, I can only collect user inputs in the terminal. However, this is the error message I receive:</p>
  <pre><code>&gt;&gt;&gt; print(&quot;Let me help you add 2 numbers&quot;) Let me help you add 2 numbers
  &gt;&gt;&gt; first_number = int(input(&quot;Enter your first number! &quot;)) Enter your first number! second_number = int(input(&quot;Enter your second number! &quot;))
   Traceback (most recent call last):   File &quot;&lt;stdin&gt;&quot;, line 1, in
   &lt;module&gt; ValueError: invalid literal for int() with base 10:
   'second_number = int(input(&quot;Enter your second number! &quot;))'
  &gt;&gt;&gt; print(&quot;The total is&quot;, first_number + second_number) Traceback (most recent call last):   File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  NameError: name 'first_number' is not defined
  &gt;&gt;&gt;
  </code></pre>
  <p>Why am I receiving this error and why can't I just collect user input?</p>