title: Checking strength of password with regex
body: <p>The function is to find out how strong password is. It's considered strong if:</p>
  
  <ol>
  <li>length is greater than or equal to 10 characters</li>
  <li>it contains at least one digit</li>
  <li>at least one uppercase letter</li>
  <li>one lowercase letter</li>
  <li>the password may only contain ASCII latin letters or digits</li>
  </ol>
  
  <p>Is there a way to reduce the amount of code in the function? <strong>Please help me make the code of function shorter than 200 characters</strong> (try to solve without assigning values to variables)</p>
  
  <pre><code>import re
  def golf(password):
      if len(password) &gt;=  10 \
      and re.search("^[a-zA-Z0-9]+", password) \
      and re.search("[a-z]+", password) \
      and re.search("[A-Z]+", password) \
      and re.search("[0-9]+", password):
          print(password, True)
          return True
      else:
          print(password, False)
          return False
  
  
  if __name__ == '__main__':
      golf('A1213pokl') == False
      golf('bAse730onE') == True
      golf('asasasasasasasaas') == False
      golf('QWERTYqwerty') == False
      golf('123456123456') == False
      golf('QwErTy911poqqqq') == True
      golf('..........') == False
  </code></pre>