10 lines
287 B
Python
10 lines
287 B
Python
def is_strong_password(password: str) -> bool:
|
|
if len(password) < 8:
|
|
return False
|
|
checker_dig = any([i.isdigit() for i in password])
|
|
checker_alp = any([i == i.upper() for i in password])
|
|
return checker_dig and checker_alp
|
|
|
|
|
|
print(is_strong_password("asdffsdf1"))
|