title: "int() can't convert non-string with explicit base" but it is a string
body: <p>I'm trying to convert some hex input into decimal RGB. Apologies if the code is bad, I'm new at python but I'm getting the error in the title even tho the input is a string? (I already printed the stuff to be converted into decimal before converting and they are all string)</p>
  <pre><code>v1 = input(&quot;Enter the first pixel value: &quot;)
  v2 = input(&quot;Enter the second pixel value: &quot;)
  #px_to_gen = input (&quot;Enter the number of pixels to generate in between: &quot;)
  
  #group (r g b) values of v1 &amp; v2 in a list
  v1_ls = [&quot;&quot;.join((v1[2],v1[3])),&quot;&quot;.join((v1[4],v1[5])),&quot;&quot;.join((v1[6],v1[7]))]
  v2_ls = [&quot;&quot;.join((v2[2],v2[3])),&quot;&quot;.join((v2[4],v2[5])),&quot;&quot;.join((v2[6],v2[7]))]
  
  print(v1_ls)
  print(v2_ls)
  
  #convert values in v1_ls &amp; v2_ls to decimal
  i = 0
  while (i &lt;= 2):
      v1_ls[i] = int(v1_ls[i], 16)
      v2_ls[i] = int(v2_ls[i], 16)
  
  print(v1_ls)
  print(v2_ls)
  </code></pre>