# Arup Guha
# 6/26/2018
# Solution to Python SI@UCF Python Test #2 Q7

def interleave(list1, list2):

    res = []

    # Go through the length of either list.
    for i in range(len(list1)) :

        # First add corresponding item from list 1.
        res.append(list1[i])

        # Then list two.
        res.append(list2[i])

    return res

def main():

    # Set up a test
    lista = [3,2,3,8]
    listb = [4,9,9,4]
    listc = interleave(lista, listb)
    print(listc)

main()
