title: Error List indices must be intergers abut it works as long as i dont use input to get the argument
body: <p>I have tried:</p>
  
  <pre><code>def funct(arg, list):
   Diferent_list=[]
  
   for i in arg:
       Diferent_list=Diferent_list+([list[1:][i][0:6]])
  </code></pre>
  
  <p>why does this works ?</p>
  
  <pre><code>funct((1,2,3),list)
  </code></pre>
  
  <p>but if i say:</p>
  
  <pre><code>arg= input((1,2,3))
  funct(arg,list)
  </code></pre>
  
  <p>(inside input() i put what i put to test the prompt</p>
  
  <p>it gives</p>
  
  <pre><code>TypeError: list indices must be integers or slices, not str
  </code></pre>
  
  <p>thats why i need it to be (1,2,3) or any "tuple"</p>
  
  <pre><code>a = ['+'.join(s for s, _, _, _, _,_ in list), sum(x + y + z + c+v for _, x, y, z, c,v in distritos)
  you can ignore that part
  #, sum(q+w+e+r+t+y+u+i+o+p+a+s+d+f+g+h+j+k+l+ç for q,w,e,r,t,y,u,i,o,p,a,s,d,f,g,h,j,k,l,ç in anotherlist)]
  </code></pre>