original_docstring: Check the strength of password.
  
      Args:
          password (str): Password.
  
      returns:
          dict: Return a dictionary indicating whether the password is strong.
  
      
docstring: Check the strength of password.
docstring_tokens: Check the strength of password .
code: def password_strength_check(password):
      """Check the strength of password.
  
      Args:
          password (str): Password.
  
      returns:
          dict: Return a dictionary indicating whether the password is strong.
  
      """
      status = False
      length = len(password) >= 8
      digit = re.search(r'\d', password) is not None
      uppercase = re.search(r'[A-Z]', password) is not None
      lowercase = re.search(r'[a-z]', password) is not None
      symbol = re.search(r'[\W_]', password) is not None
      if not length:
          message = 'Password must have 8 characters length or more'
      elif not digit:
          message = 'Password must have 1 digit or more'
      elif not uppercase:
          message = 'Password must have 1 uppercase letter or more'
      elif not lowercase:
          message = 'Password must have 1 lowercase letter or more'
      elif not symbol:
          message = 'Password must have 1 symbol or more'
      else:
          status = True
          message = 'Success'
  
      return {'status': status, 'message': message}
code_tokens: def password_strength_check ( password ) : status = False length = len ( password ) >= 8 digit = re . search ( r'\d' , password ) is not None uppercase = re . search ( r'[A-Z]' , password ) is not None lowercase = re . search ( r'[a-z]' , password ) is not None symbol = re . search ( r'[\W_]' , password ) is not None if not length : message = 'Password must have 8 characters length or more' elif not digit : message = 'Password must have 1 digit or more' elif not uppercase : message = 'Password must have 1 uppercase letter or more' elif not lowercase : message = 'Password must have 1 lowercase letter or more' elif not symbol : message = 'Password must have 1 symbol or more' else : status = True message = 'Success' return { 'status' : status , 'message' : message }
short_docstring: Check the strength of password.
short_docstring_tokens: Check the strength of password .
comment: """Check the strength of password.
  
      Args:
          password (str): Password.
  
      returns:
          dict: Return a dictionary indicating whether the password is strong.
  
      """