def listToPair(listOfTeams):
    pair = [None]*(len(listOfTeams)/2)
    for i in range(len(listOfTeams)/2):
        pair[i] = [listOfTeams[i],listOfTeams[(len(listOfTeams)-1-i)]]
    return pair
dataset/ETHPy150Open jolynch/mit-tab/mittab/libs/pairing_alg.py/listToPair/original