PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
digits = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"]
capitals = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
specials = ["@", "&", "€", "!", "?", ".", "/", "-", ";", ":", "(", ")" "|", "~", "_", "<", ">", "$", "£", "¥", "•", "[", "]", "{", "}", "\'", "#", "%", "^", "*", "+", "="]
def check(password):
global digits
global capitals
global specials
valid = "The password \"", password, "\" is a valid password and can be used!"
invalid = "The password \"", password, "\" is not a valid password and can not be used!"
length = False
capital = False
numbers = False
special = False
if len(password) >= 8:
length = True
for i in password:
if i in digits:
numbers = True
elif i in capitals:
capital = True
Enter to Rename, Shift+Enter to Preview
OUTPUT
Uruchom