'''
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.
'''
#import re

'''def pw_detection(pw):
    if len(pw) < 8:
    	return False
    elif re.search('[0-9]', pw) is None:
        return False
    elif re.search('[A-Z]',pw) is None: 
        return False
    elif re.search('[a-z]',pw) is None: 
        return False
    else:
        return True

if __name__ == '__main__':
    pw = input('Enter your password: ')
    if password_detection(pw):
        print('Good, your password is strong!')
    else:
        print ('The password is at least eight characters long, contains both uppercase and lowercase characters, and has at least one digit.')
        '''
import re
def Pass_detection(pw):
    if len(pw) < 8:
       return False
    elif re.search('[0-9]|[A-Z]|[a-z]', pw) is None:
        return False
    else:
        return True

pw = input('Enter your password : ')
if Pass_detection(pw):
    print('Good, your password is strong!')
else:
    print('''
    The Password should at least be eight characters long,
    contains both uppercase and lowercase characters,
    and has at least one digit.
    ''')
