For ages it bothered me that I couldn't think of a short way to get the entire alphabet. If you use range enough that R=range is worth having in your program, then
[chr(i+97)for i in R(26)]
is shorter than the naive
'abcdefghijklmnopqrstuvwxyz'
, but otherwise it's longer by a single character. It haunted me that the clever one that required some knowledge of ascii values ended up being more verbose than just typing all the letters.
Until I saw thisthis answer for My Daughter's AlphabetMy Daughter's Alphabet. I can't follow the edit history well enough to figure out if this genius was the work of the OP or if it was a suggestion by a commenter, but this is (I believe) the shortest way to create an iterable of the 26 letters in the Roman alphabet.
map(chr,range(97,123))
If case doesn't matter, you can strip off another character by using uppercase:
map(chr,range(65,91))
I use map way too much, I don't know how this never occurred to me.