Is there a way to do a letter range in python like this:
for x in range(a,h,)
import string def letter_range(f,l,al = string.ascii_lowercase): for x in al[al.index(f):al.index(l)]: yield x print ' '.join(letter_range('a','h'))
result
a b c d e f g