main.py283 chars9 lines
Explanation:
string.ascii_lowercase
returns all the letters of the lowercase alphabet.random.choice
returns a random element from the given iterable, in this case:lowercase_letters
.join()
method is used to create a single string from a list of strings (in this case, the list of random letters).Usage:
main.py114 chars4 lines
gistlibby LogSnag