title: I'm trying to build a string from command line prompts in python, but I'm having trouble removing values from the list its in
body: <p>I'm taking input from the command line as 100,1000 and converting it to a list and then adding up certain values to get what i want back to use as prameters elsewhere in the code.
  But it does not remove the &quot;0&quot; value</p>
  <pre><code>        comParam1 = list((argv[1])) #how many steps they take
          cplist1 = comParam1[0] + comParam1[1] + comParam1[2]
          cplist2 = comParam1[4] + comParam1[5] +comParam1[6] +comParam1[7] 
          comParam1[0] = int(cplist1)
          comParam1[1] = int(cplist2)
          comParam1.remove(&quot;0&quot;)
          comParam1.remove(&quot;,&quot;)
          comParam1.remove(&quot;1&quot;)
          asdf = str(comParam1[:2])
  </code></pre>