[Tutor] Re: Letters vs. numbers

Lee Harr missive at hotmail.com
Sun Oct 31 02:01:56 CET 2004


>But now I want to output a 5 character combination of lower case letters 
>and
>0-9 digits. Is there a function that combines both and then I put the
>variable into the md5() function? Any bit of help would be appreciated.
>


import random
import string

variable = ''.join(random.sample(string.lowercase+string.digits, 5))

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.com/



More information about the Tutor mailing list