def sumList(inList):
    """
    calculates sum of the list
    INPUT:
    inList: input list 
    OUTPUT:
    sum: sum of the input list
    """
    sum = 0
    for num in inList:
        sum += num
    return sum