title: Python 2: AttributeError: 'list' object has no attribute 'strip'
body: <p>I have a small problem with list. So i have a list called <code>l</code>:</p>
  
  <pre><code>l = ['Facebook;Google+;MySpace', 'Apple;Android']
  </code></pre>
  
  <p>And as you can see I have only 2 strings in my list. I want to separate my list <code>l</code> by <strong>';'</strong> and put my new 5 strings into a new list called <code>l1</code>.</p>
  
  <p>How can I do that?</p>
  
  <p>And also I have tried to do this like this:</p>
  
  <pre><code>l1 = l.strip().split(';')
  </code></pre>
  
  <p>But Python give me an error:</p>
  
  <pre><code>AttributeError: 'list' object has no attribute 'strip'
  </code></pre>
  
  <p>So if 'list' object has no attribute 'strip' or 'split', how can I split a list?</p>
  
  <p>Thanks</p>