Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- password = input("Введите пароль не менее 8 символов и не более 64")
- # Проверяем длину пароля
- if 0 < len(password) <= 64:
- if re.match("[a-zA-Z0-9]+", password):
- print('Збс')
- digit = False
- lower = False
- upper = False
- if str.isdigit(password):
- digit = True
- print(digit)
- if str.islower(password):
- lower = True
- print(lower)
- if str.isupper(password):
- upper = True
- print(upper)
- # if digit=True and lower = True and upper = True:
- # if str.isdigit(password) == True and str.islower(password) == True and str.isupper(password) == True:
- print('Кросавчег')
- # else:
- # print('неправильный пароль!')
- else:
- print('неправильный пароль!')
- else:
- print('неправильный пароль!')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement