Guest User

Untitled

a guest
Feb 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. from string import letters, digits, punctuation
  4. from random import choice
  5.  
  6. def password(n=9):
  7.    pool = letters + digits + punctuation
  8.    pword = [choice(pool) for x in range(n)]
  9.    return pword
Add Comment
Please, Sign In to add comment