https://wikimass.com/python/alphabet-pattern-31