# Strong Password Detection - this program ensures passwords entered are "strong"
#
# Write a function that uses regular expressions to make sure the password string
# it is passed is strong. A strong password is defined as one that is at least eight
# characters long, contains both uppercase and lowercase characters, and has at least
# one digit. You may need to test the string against multiple regex patterns to validate
# its strength.
@@ -434,8 +434,539 @@
 trength.
+%0Aimport re%0A%0A%0Adef isStrongPW(text):%0A    lengthRegex = re.compile(r%22%5B%5Cd%5Cw%5D%7B8,%7D%22)  # at least 8 numbers and characters%0A    upperLowerRegex = re.compile(r%22%5Ba-z%7CA-Z%5D?%5BA-Z%5D+%22)  # at least 1 upper and lower character%0A    digitRegex = re.compile(r%22%5B%5Cd%5D+%22)  # at least one digit%0A%0A    if not lengthRegex.search(text):%0A        return False%0A    if not digitRegex.search(text):%0A        return False%0A    if not upperLowerRegex.search(text):%0A        return False%0A    return True%0A%0A%0Apassword = %22AutomateTheBoringStuff1%22%0Aprint(isStrongPW(password))%0A

Update P01_strong_pw_detect: working solution