def calc_max_min_marks(marks):
    """ Function which returns the minimum(excluding 0) and maximum score of the class in the form of a list. """
    result = []
    marks.sort()
    min_max = []
    min_max[:] = (value for value in marks if value != 0)
    least_score = min_max[0]
    highest_score = min_max[-1]

    result.append(least_score)
    result.append(highest_score)

    return result