We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 75f0cd3 + 91a4dad commit 07912a9Copy full SHA for 07912a9
Password_Strength_checker/password_strength_checker.py
@@ -1,10 +1,11 @@
1
import re
2
3
+
4
def is_strong_password(password):
5
# Check length (at least 8 characters)
6
if len(password) < 8:
7
return False
-
8
9
# Check for uppercase letters
10
if not any(char.isupper() for char in password):
11
@@ -24,6 +25,7 @@ def is_strong_password(password):
24
25
26
return True
27
28
29
def main():
30
password = input("Enter your password: ")
31
@@ -32,5 +34,6 @@ def main():
32
34
else:
33
35
print("Weak password. Please make it stronger.")
36
37
38
if __name__ == "__main__":
39
main()
0 commit comments