List1 = ['j', 's', 'l', 'p', 't']
List2 = ['b', 'd', 'q', 's', 'y', 'j']
maxlen = max(len(List1), len(List2)) + 1000
slot_array = [[maxlen, maxlen] for x in range(ord('a'), ord('z') + 1)]
for list_index, the_list in enumerate((List1, List2)):
    print(list_index)
for letter_index, letter in enumerate(the_list):
    slot = slot_array[ord(letter) - ord('a')]
if slot[list_index] > letter_index:
    slot[list_index] = letter_index
min_value = maxlen * 2
for i, (a, b) in enumerate(slot_array):
    sab = a + b
if sab < min_value:
    min_value = sab
min_index = i
print(chr(min_index + ord('a')))
Surprising order in python set combination methods