def sum_of_columns(dataframe, columns):
    """
    Calculates the sum of the specified columns from the specified dataframe
    :param dataframe: the dataframe
    :param columns: the columns of the dataframe
    :return: the sum of the specified columns
    """
    temp = 0
    for col in columns:
        temp += dataframe[col]
    return temp