def getOneHot(labelList, label):
    """Get one-hot code identifying the index of label in labelList
    
    eg. For labelList = ["Apple", "Banana", "Orange"], label = "Orange", returns [0, 0, 1]
    """
    oneHot = [0 for _ in labelList]
    for i, l in enumerate(labelList):
        if l == label:
            oneHot[i] = 1
            break
    return oneHot