Skip to content

Commit 07912a9

Browse files
Merge pull request #2470 from avinashkranjan/deepsource-transform-e895270e
format code with autopep8
2 parents 75f0cd3 + 91a4dad commit 07912a9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Password_Strength_checker/password_strength_checker.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import re
22

3+
34
def is_strong_password(password):
45
# Check length (at least 8 characters)
56
if len(password) < 8:
67
return False
7-
8+
89
# Check for uppercase letters
910
if not any(char.isupper() for char in password):
1011
return False
@@ -24,6 +25,7 @@ def is_strong_password(password):
2425

2526
return True
2627

28+
2729
def main():
2830
password = input("Enter your password: ")
2931

@@ -32,5 +34,6 @@ def main():
3234
else:
3335
print("Weak password. Please make it stronger.")
3436

37+
3538
if __name__ == "__main__":
3639
main()

0 commit comments

Comments
 (0)