Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
ssza committed Nov 6, 2020
1 parent 67ab92a commit a33d4b9
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion password.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,17 @@
"""

if __name__ == '__main__':
pass
alpha_flag = False
num_flag = False
alpha = 'abcdefghijklmnopqrstuvwxyz'
nums = '0123456789'
password = input('Введите пароль: ')
for i in password:
if i.lower() in alpha:
alpha_flag = True
if i in nums:
num_flag = True
if alpha_flag and num_flag and len(password) >= 8:
print('Пароль сложный')
else:
print('Пароль простой')

0 comments on commit a33d4b9

Please sign in to comment.