aList = ["a", "c", "e", "g"] bList = ["b", "d", "f", "h", "i", "j"] n1 = len(aList) n2 = len(bList) combo = [] for i in range(0, n1): combo += [aList, bList] if n2 > n1: combo += bList[n1:n2] print combo
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.