Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'
- print('Введите количество паролей:')
- number = int(input())
- print(len(chars))
- print('Введите длину:')
- length = int(input())
- i = 0
- while i < number:
- password = ''
- char = 0
- while char < length:
- password += random.choice(chars)
- char += 1
- i += 1
- print(password)
Add Comment
Please, Sign In to add comment