-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
27 lines (25 loc) · 912 Bytes
/
main.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
import random
capital = "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ"
one_more = random.choice(capital.upper())
smaller = random.choice(capital.lower())
number = "1234567890"
number_2 = random.choice(number)
number_3 = random.choice(number)
number_4 = random.choice(number)
signs = ["!", "@", "#", "$", "*"]
user = input("Type something between 3 to 5 letters: ")
password1 = random.choice(capital)
password2 = random.choice(smaller)
password3 = random.choice(number)
password4 = random.choice(signs)
password = [password3, password2, password1, user, password4, number_2, one_more, number_3, number_4]
real_password = "".join(password)
if len(user) > 5:
print("password needs to be less than 5 characters ")
exit()
elif len(user) < 3:
print("password needs to be larger than 3 characters ")
quit()
else:
print("Thanks")
print("This is your uncrackable password: ", real_password)