diff --git a/m.py b/m.py new file mode 100644 index 0000000..b8b4008 --- /dev/null +++ b/m.py @@ -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"))