title: Python doesn't differentiate len() of list and string?
body: <p>For example I have this pandas simple data frame:</p>
  
  <pre><code>&gt;&gt; print(file)
         Name
      0  ['junior','senior']
      1  freshgrad
  </code></pre>
  
  <p>when I tried using :</p>
  
  <pre><code>&gt;&gt; len(file[0])
  2
  </code></pre>
  
  <p>but for the second one</p>
  
  <pre><code>&gt;&gt; len(file[1])
  9
  </code></pre>
  
  <p>But I want the second one to calculate as <code>1</code> how to differentiate between these two? </p>
  
  <ol>
  <li>I have tried using <code>.join()</code> but it still calculate as <code>9</code></li>
  <li>I have tried <code>list.count</code> but I got an error</li>
  </ol>