Python password generator

Here is a simple few liner password generator written in compact python.


import string as s; from random import choice as c
x=10; print ''.join([c(s.letters + s.digits) for i in range(x)])


# python pw.py
Bz7DKuzqCL