Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. import random
  2.  
  3. # Das Passwort wird ohne inhalt als String erstellt
  4. password = ""
  5.  
  6. # Es werden random Zahlen erzeugt, die mithilfe der ASCII Tabelle
  7. # in Zeichen und buchstaben umgerechnet werden
  8. for erzeugen in range(10):
  9.     a = random.randrange(33, 126)
  10.     a = str(chr(a))
  11.     password += a
  12. print(password)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement