-
Notifications
You must be signed in to change notification settings - Fork 1
/
password_picker.py
46 lines (32 loc) · 1.4 KB
/
password_picker.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import random
import string
articles = ['a', 'an', 'the']
adjectives = ['loyal', 'loud', 'teeny',
'cute', 'crazy', 'tired',
'floofy', 'cloudy', 'sweet',
'intelligent', 'dangerous', 'fruitful',
'trustworthy', 'stylish', 'leafy',
'lovely', 'moony', 'sharp', 'solo', 'artistic']
colors = ['silver', 'turquoise', 'black', 'white', 'green', 'pastel', 'purple',
'fuschia', 'blue', 'red', 'iridescent', 'pink', 'violet', 'olive']
nouns = ['snake', 'skywing', 'cat',
'battery', 'cactus', 'leather',
'book', 'hackysack', 'falcon',
'charm', 'sky', 'zebra',
'Nezuko', 'Kagome', 'Ochaco', 'Asuna',
'Tanjiro', 'Inuyasha', 'Izuku', 'Kirito', 'swordsman', 'sword',
'rapier']
print('Welcome to Password Picker!')
while True:
for num in range(3):
article = random.choice(articles)
adjective = random.choice(adjectives)
color = random.choice(colors)
noun = random.choice(nouns)
number = random.randrange(0, 100)
special_char = random.choice(string.punctuation)
password = article + adjective + color + noun + str(number) + special_char
print('Your new password is: %s' % password)
response = input('Would you like another password? Type y or n: ')
if response == 'n':
break