Skip to content

Commit 91a4dad

Browse files
style: format code with autopep8
Format code with autopep8 This commit fixes the style issues introduced in 20bd563 according to the output from Autopep8. Details: https://app.deepsource.com/gh/avinashkranjan/Amazing-Python-Scripts/transform/3df96df2-ff22-4179-a560-a07d96f6daa2/
1 parent c7143fc commit 91a4dad

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)