title: Why are my lists not being created properly in Python 2.7?
body: <p>I have a dictionary object with three keys. Each key contains three RGB values.</p>
  
  <pre><code>&gt;&gt;&gt; dictObj = {}
  &gt;&gt;&gt; dictObj['key1'] = ["123,12,43", "42,34,1", "38,225,132"]
  &gt;&gt;&gt; dictObj['key2'] = ["234,92,109", "227,5,229", "156,4,2"]
  &gt;&gt;&gt; dictObj['key3'] = ["15,123,82", "128,11,130", "78,39,1"]
  </code></pre>
  
  <p>My goal is to take each key's list of RGB values, and take the R of each item, the G of each item and B of each item to create three lists, containing just the R values of all three keys, the G values of all three keys and the B values of all three keys.</p>
  
  <p>I implemented a series of for loops to call each key, split the item in each key's list and attempt to append the R, G and B values to each respective list.</p>
  
  <pre><code>&gt;&gt;&gt; rList=gList=bList=[]
  &gt;&gt;&gt; for key in dictObj:
          for RGBval in dictObj[key]:
              RGBval = RGBval.split(',')
              rList.append(RGBval[0])
              gList.append(RGBval[1])
              bList.append(RGBval[2])
  </code></pre>
  
  <p>I run the loop, however each list, contains the exact same values. I don't understand why this is happening. If I print RGBval[0], RGBval[1] and RGBval[2] within the loop, each iteration shows different, distinct values. However when the three lists are created via the append method, when printed, each list contains the exact same values, this is my output.</p>
  
  <pre><code>&gt;&gt;&gt; print rList
  ['123', '12', '43', '42', '34', '1', '38', '225', '132', '15', '123'...etc]
  &gt;&gt;&gt; print gList
  ['123', '12', '43', '42', '34', '1', '38', '225', '132', '15', '123'...etc]
  &gt;&gt;&gt; print bList
  ['123', '12', '43', '42', '34', '1', '38', '225', '132', '15', '123'...etc]
  </code></pre>
  
  <p>How can I create my lists so that they contain the appropriate values for each list? IE, the rList, list, only contains the R values of each key's list items, the gList only contain the G values of each key's list items, etc?</p>
  
  <p>Thanks for your input!</p>