title: How can I fix VS Code error "invalid literal for int() with base 10"?
body: <pre><code>var1 = 6
  var2 = int(input())
  if var2 &gt; var1:
      print(&quot;Greater&quot;)
  else:
      print(&quot;Smaller&quot;)
  </code></pre>
  <p>Hey there I started learning python recently, currently I am using VS Code but I encountered a problem while learning IF ELSE, in the above code it is showing &quot;invalid literal for int() with base 10&quot; while in other compiler it works fine. How do I fix it.</p>