title: Python TypeError: 'type' object is not iterable
body: <p>I've looked up other threads on this error "TypeError: 'type' object is not iterable", but I'm not quite understanding what is wrong</p>
  
  <pre><code>a = ["Hey","Oh",32,12,"No",41]
  b = [23,65,2,7,21,29]
  c = ["My","Friends","At","Coding","Dojo"]
  
  def listType(arg):
      new_string = ""
      numSum = 0
  
  for value in type(a):
      if isinstance(value,int) or isinstance(value,float):
          numSum += value
      elif isinstance(value,str):
          new_string += value  
      if new_string and numSum:
          print "String:", new_string
          print "Sum:", numSum
          print "This list is of mixed type"
      elif new_string:
          print "String:", new_string
          print "This list is of string type"
      else:
          print "Sum:", numSum
          print "This list is of integer type" 
  
  print listType(a)
  </code></pre>