snowden_web

marafon | 15

Jun 28th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.43 KB | None | 0 0
  1. import random
  2.  
  3. chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'
  4.  
  5. print('Введите количество паролей:')
  6. number = int(input())
  7. print(len(chars))
  8.  
  9. print('Введите длину:')
  10. length = int(input())
  11.  
  12. i = 0
  13. while i < number:
  14.     password = ''
  15.     char = 0
  16.     while char < length:
  17.         password += random.choice(chars)
  18.         char += 1
  19.     i += 1
  20.     print(password)
Add Comment
Please, Sign In to add comment