Is there a built-in method / module in Python to generate letters such as the built-in constant LETTERS or letters constant in R?
The R built-in constant works as letters[n] where if n = 1:26 the lower-case letters of the alphabet are produced.
Thanks.
It’s called
string.ascii_lowercase.If you wanted to pick n many random lower case letters, then:
If you wanted it as a string, rather than a list then use
str.join: