Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import *
- import string
- adjs = ['green', 'blue', 'yellow', 'good', 'cold']
- nouns = ['ball', 'panda', 'dinosaur', 'cat', 'dog']
- while True:
- adj = choice(adjs)
- noun = choice(nouns)
- number = randint(1, 20)
- special = choice(string.punctuation)
- password = adj + noun + str(number) + special
- print('Новый пароль:', password)
- ans = input('Нужен другой пароль? да/нет\n')
- if ans == 'нет':
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement