DEV Community

Discussion on: Lockdown Programming Challenges: 2. Password Generator

Collapse
 
shubh2346 profile image
shubh2346

import random

lower ="abcdefghijklmnopqrstuvwxyz"
upper ="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
numbers ="0123456789"
symboles ="[]\•@#$&()"

all=lower+upper+numbers+symboles
length =16
pass ="".join(random.sample(all,length))
print(pass)

Collapse
 
drm317 profile image
Daniel Marlow

Nice