PW Akshay

Generation

code to explanationMon, 28 Nov 2022

for i in range(password_length): password += random.choice(constants) print(password)

The code takes the length of the password from the user and then creates a random generator using random.choice, this is then repeated for the password length.

Questions about programming?Chat with your personal AI assistant