title: Finding multiple patterns using findall funtion in Python
body: <p>Is there any other way of finding multiple patterns using findall instead of just adding functions together? Im just starting with python...</p>
  
  <pre><code>txt = "UUUUUUUUUUUUUUCUUCUUCUUCUUCUUC"
  
  print ("Phenylalanine " ) + str(len(re.findall(r'UUC',txt)) + len(re.findall(r'UUU',txt)))
  </code></pre>
  
  <p>Which is giving a correct answer 10 matches but thats a hard way, just what happens when there are more patterns:</p>
  
  <pre><code>print ("Leucine " ) + str(len(re.findall(r'UUA',txt)) + len(re.findall(r'UUG',txt)) + len(re.findall(r'CUU',txt)) + len(re.findall(r'CUC',txt)) + len(re.findall(r'CUA',txt)) + len(re.findall(r'CUG',txt)))
  </code></pre>
  
  <p>thought about:</p>
  
  <pre><code>list1 = ['UUU', 'UUC', 'UUA', 'UUG', 'CUU', 'CUC', 'CUA', 'CUG' ];
  list2 = ['Phenylalanine', 'Leucine'];
  </code></pre>
  
  <p>But how to match them together?</p>
  
  <p>Or something like:</p>
  
  <pre><code>print ("Phenylalanine " ) + str(len(re.findall(r'UUC' **and** 'UUU',txt)))
  </code></pre>
  
  <p>but /and/ and /or/ are not giving me the right answer</p>
  
  <p>I have 64 patterns to match with 23 names, how to do it much easier? how with a table?
  Thank you</p>