Advertisement
snowden_web

Untitled

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