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