PW Akshay

Generation

generate functionMon, 28 Nov 2022

password generator using random module

import random def password_generator(n): chars = "abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*" password = "" for i in range(n): password += random.choice(chars) return password password_generator(15)

Want to kickstart your project?Use the new AI Studio to create your code