Strength of password
print ( " Strength ▁ of ▁ password : - " , end = " " ) NEW_LINE if ( hasLower and hasUpper and hasDigit and specialChar and n >= 8 ) : NEW_LINE INDENT print ( " Strong " ) NEW_LINE DEDENT elif ( ( hasLower or hasUpper ) and specialChar and n >= 6 ) : NEW_LINE INDENT print ( " Moderate " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " Weak " ) NEW_LINE DEDENT