#!/usr/bin/env python3 alphabet = list(map(lambda needle: chr(int(needle) + ord('A')), range(0, 26))) print(list(map(lambda index_needle: index_needle[0] * 26 + alphabet.index(index_needle[1]), enumerate(list("AAA")))))