[Tutor] Clunky Password maker

Sander Sweers sander.sweers at gmail.com
Wed May 25 20:15:03 CEST 2011


On Wed, 25 May 2011, 19:25:59 CEST, Wolf Halton <wolf.halton at gmail.com> wrote:
> [code]
> def new_pass():
>         series = ['`', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-',
> '=', \
>                             '~', '!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_',
> '+', \
>                             'q', 'w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', '[', ']',
> '\\', \
>                             'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', '{', '}',
> '|', \
>                             'a', 's', 'd', 'f', 'g', 'h', 'j', 'k', 'l', ';', "'", \
>                             'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', ':', '"', \
>                             'z', 'x', 'c', 'v', 'b', 'n', 'm', ',', '.', '/', \
>                             'Z', 'X', 'C', 'V', 'B', 'N', 'M', '<', '>', '?']

Have a look at the string module as it has all the above already.

Greets
Sander
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110525/4583548f/attachment.html>


More information about the Tutor mailing list