#NEWLINE# def get_random_str( num ) : #NEWLINE# #INDENT# elements = ( string . letters + string . digits ) #NEWLINE# result = random . sample ( elements , elements ) #NEWLINE# if result [ 0 ] . isdigit ( ) : #NEWLINE# #INDENT# result = result [ 1 : ] #NEWLINE# #UNINDENT# return '' . join ( result )