title: Python Password Checker
body: <p>I need some help figuring out how to make a function that checks a string for a bunch of conditions.</p>
  
  <ul>
  <li><p>Passwords must    be  at  least   5   characters  long</p></li>
  <li><p>Passwords must contain at least one upper case letter</p></li>
  <li><p>Passwords must    contain at  least   two numbers</p></li>
  <li><p>Passwords may not contain the characters  "E" or  "e"</p></li>
  <li><p>Passwords must    include at  least   one special symbol:     !,  @,  #,  $,  %,  ^,  &amp;</p></li>
  </ul>
  
  <p>right now this is all that I have</p>
  
  <pre><code>def passwordChecker(password):
      '''
      '''
      caps = sum(1 for c in password if c.isupper())
      nums = sum(1 for c in password if c.isdigit())
      symb = any(c in password for c in '!@#$%^&amp;')
      note = any(c in password for c in 'Ee')
      if len(password) &lt;5:
          return False
      elif caps &lt; 1:
          return False
      elif nums &lt; 1:
          return False
      elif symb == False:
          return False
      else:
          return True
  </code></pre>
  
  <p>Edit**</p>
  
  <p>Just realized that I have to check also if there are commonly used passwords like 'password' or '111111' and I dont really know about how I would approach this.</p>