Advertisement
Guest User

Untitled

a guest
Oct 4th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import random
  2.  
  3. num=int(input('How long password do you want in characters?'))
  4.  
  5. char='qwertzuiopasdfghjklyxcvbnmQWERTZUIOPASDFGHJKLYXCVBNM<>#&@{}<'
  6. password="".join(random.sample(char,num))
  7.  
  8. print('Your password is: '+ password)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement