Skip to content

Commit c1f0b4b

Browse files
authored
Update password_strength_checker.py
1 parent e1aa658 commit c1f0b4b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Passwords/password_strength_checker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#program to check password strength. A strong password needs to be at least 8 chars long, have both upper and lowercase chars and have some special characters as well.
12
import string
23

34
def Strength(password):
@@ -21,8 +22,7 @@ def Strength(password):
2122
specialChar = True
2223

2324
# Strength of password calculation.
24-
# password is strong only if it has both upper case and lowercase letters as well as special characters.
25-
# Also length should be greater than or equal to 8
25+
2626
print("Strength of password:-", end = "")
2727
if (hasLower and hasUpper and
2828
hasDigit and specialChar and n >= 8):
@@ -39,4 +39,4 @@ def Strength(password):
3939

4040
password = input("Enter password: ")
4141

42-
Strength(password)
42+
Strength(password)

0 commit comments

Comments
 (0)