title: for loop to concatenate strings
body: <p>I need to concatenate strings in the list and add the integers to a sum; of course, I intend to change it to other data types later - thanks so much for all your kind responses</p>
  
  <pre><code>l = ['magical unicorns', 19, 'hello', 98.98, 'world']
  
  comb_str = ''
  comb_int = 0
  
  for i in l:
      if type(i) is 'str':
          comb_str = comb_str + 'i'
      elif type(i) is 'int':
          comb_int += i
      else:
          pass
  
  print comb_str
  print comb_int
  </code></pre>
  
  <p>I am just getting the '0' output that was initialized in the beginning as if it skipped over the for loop :)</p>