You are on page 1of 1

import random

chars = "abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMOPQRSTUVWXYZ!@#$%&?"

def passwordgenerator():
n = random.randint(6, 12)
print(n)

for p in range(0, n):


password = ''
password += random.choice((chars))
print(password, end="")

passwordgenerator()

You might also like