Skip to content

Commit bc780e6

Browse files
committed
Completed main file]
1 parent d716359 commit bc780e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

analyzer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ def check_passwords(password_of_user):
66
reader = csv.reader(file)
77
# Flatten the list: csv.reader returns list of rows, we only have one row
88
passwords = [p.strip() for p in next(reader) if p.strip()]
9+
10+
#checking for any digit and symbol in password
911
has_digit = any(c.isdigit() for c in password_of_user)
1012
has_symbol = any(not c.isalnum() for c in password_of_user)
13+
14+
#getting length of the password
1115
length_of_password = len(password_of_user)
1216
# Check length first
1317
if length_of_password < 8:

0 commit comments

Comments
 (0)