title: Why the else statement always runs?
body: <p>I've been making a basic calculator with Python and I have come across this issue. After the calculations are made, &quot;Invalid Number&quot; <em><strong>always</strong></em> prints.</p>
  <pre><code>print(&quot;Select an action &quot;)
  print(&quot;1.) Add&quot;)
  print(&quot;2.) Subtract&quot;)
  print(&quot;3.) Multiply&quot;)
  print(&quot;4.) Divide&quot;)
  ac = int(input(&quot;&gt;&gt;&gt;&quot;))
  print(&quot;First number :&quot;)
  fn = float(input(&quot;&gt;&gt;&gt;&quot;))
  print(&quot;Second number :&quot;)
  sn = float(input(&quot;&gt;&gt;&gt;&quot;))
  
  if ac == 1:
      print(fn + sn)
  if ac == 2:
      print(fn - sn)
  if ac == 3:
      print(fn * sn)
  if ac == 4:
      print(fn / sn)
  else:
      print(&quot;Invalid Number&quot;)
      print(&quot;Press enter to continue&quot;)
      input()
  </code></pre>
  <p>An example (wrong) output is:</p>
  <pre class="lang-none prettyprint-override"><code>Select an action 
  1.) Add
  2.) Subtract
  3.) Multiply
  4.) Divide
  &gt;&gt;&gt;1
  First number :
  &gt;&gt;&gt;2
  Second number :
  &gt;&gt;&gt;3
  5.0
  Invalid Number
  Press enter to continue
  </code></pre>
  <p>How can I fix that so &quot;Invalid Number&quot; only prints when it should?</p>