Password Generator having issues
Trouper last edited by
I'm very new to python and need to create a password generator (for school) containing upper, lower cases, numbers and characters and at least 8 characters in length, and give the user 4 options to choose from. Ive wasted a few days now trying lots of different thingd and cant quite get this concept to work for me.
Can anyone please point me in the right direction? It'd be very much appreciated. Thanks!
ccc last edited by ccc
from random import choice from string import ascii_letters, digits #, punctuation chars = ascii_letters + digits # + punctuation length = 8 # 8 is really too short for the state of computers in 2021! for number_of_passwords in range(4): print("".join(choice(chars) for x in range(length)))