human
Program to check Strength of Password | Python3 program to check if a given password is strong or not ..
Checking lower alphabet in string.
Strength of password.
Driver code"
How can the above be solved in Python?

=====
What is a code to program to check Strength of Password and the other steps required?
assistant
#Here is code to program to check Strength of Password and the other steps required.
 def printStrongNess ( input_string ) :
	n = len ( input_string )
	hasLower = False
	hasUpper = False
	hasDigit = False
	specialChar = False
	normalChars = " abcdefghijklmnopqrstu "
	for i in range ( n ) :
		if input_string [ i ] . islower ( ) :
			hasLower = True
		if input_string [ i ] . isupper ( ) :
			hasUpper = True
		if input_string [ i ] . isdigit ( ) :
			hasDigit = True
		if input_string [ i ] not in normalChars :
			specialChar = True
	print ( " Strength ▁ of ▁ password : - " , end = " " )
	if ( hasLower and hasUpper and hasDigit and specialChar and n >= 8 ) :
		print ( " Strong " )
	elif ( ( hasLower or hasUpper ) and specialChar and n >= 6 ) :
		print ( " Moderate " )
	else :
		print ( " Weak " )
if __name__ == " _ _ main _ _ " :
	input_string = " GeeksforGeeks ! @12"
	printStrongNess ( input_string )