I made a list of the characters that I want in the string and also know the length. I just don't know where to announce the characters that I want to use.`
import random
characters = ("a", "b", "c", "d", "e", "f", "g", "h", "i", "j",
"k", "l", "m", "n", "o", "p", "q", "r", "s", "t",
"u", "v", "w", "x", "y", "z", "A", "B", "C", "D",
"E", "F", "G", "H", "I", "J", "K", "L", "M", "N",
"O", "P", "Q", "R", "S", "T", "U", "V", "W", "X",
"Y", "Z", ":", ";", "<", "=", ">", "?", "@", "[",
"]", "/", "^", "_", "'")
class Password:
def creat_password(self):
length = float(input("Enter a float between 6 & 12"))
Aucun commentaire:
Enregistrer un commentaire