title: iterating through list - splitting strings
body: <p>I have a list of <code>drawingnumbers</code>, I am attempting to split these strings and then append to a number of lists. </p>
  
  <p>I am hoping to end up with a number of lists, which contains each relevant piece of the original string. </p>
  
  <p>At the minute my definition is iterating through the list, but overwriting the variables, not appending them. So I have a single entry for each variable and these correspond to the final entry of the list.</p>
  
  <p>Could anybody please help?</p>
  
  <pre><code># drawingnumber split 
  
   drawingnumber = ["AAA601-XXX-A-L00-1028-DR-GA-200-001",
   "AAA601-XXX-A-L10-1028-DR-GA-200-001",
   "AAA601-XXX-A-L00-1029-DR-GA-200-001",
   "AAA601-XXX-A-L00-1029-DR-GA-200-XXX"]
  
   building = []  
   buildinglist = []  
   originator = []  
   discipline = []  
   level = []  
   scope = []  
   drawingtype = []  
   drawingsubtype = []  
   numbera = []  
   numberb = []
  
   for i in drawingnumber:  
      building, originator, discipline, level, scope, \
      drawingtype,drawingsubtype, numbera, numberb = i.split("-")
  
   print("building:", building)  
   print("originator: ", originator)  
   print("discipline: ", discipline)  
   print("level: ", level)  
   print("scope: ", scope)  
   print("drawingtype: ", drawingtype)  
   print("drawingsubtype", drawingsubtype)  
   print("drawingident", numbera, "-", numberb)  
  </code></pre>