title: Python - get index of character in list
body: <p>This here works and returns the index:</p>
  
  <pre><code>&gt;&gt;&gt; ['a', 'b'].index('b')
  1
  </code></pre>
  
  <p>However, this will not return the index,.</p>
  
  <pre><code>&gt;&gt;&gt; ['a', 'bbc'].index('b')
  Traceback (most recent call last):
    File "&lt;pyshell#1&gt;", line 1, in &lt;module&gt;
      ['a', 'bb'].index('b')
  ValueError: 'b' is not in list
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>How can I find the index just by a single character?</p>