second_commit
This commit is contained in:
parent
5f3a282d05
commit
1cc616b213
9
m.py
Normal file
9
m.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
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"))
|
||||||
Loading…
Reference in New Issue
Block a user