generate password using python with less code code example
Example: python random password generator
import random
alph = list('ABCDEFGHIJKLMNOPQRSTUVWXYZ\
abcdefghijklmnopqrstuvwxyz\
1234567890 !@#$%^&*(){}[]<>,.')
out = ''
for char in string:
out += random.choice(alph)
print(out)