Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Writes the given grades to a file.

Results are a list of tuples student_id, good_answers, bad_answers.

        def write_grades(grades, file_, csv_dialect):
    """Writes the given grades to a file.

       Results are a list of tuples student_id, good_answers, bad_answers.

    """
    writer = csv.writer(file_, dialect = csv_dialect)
    for grade in grades:
        writer.writerow(grade)
        


src/e/y/eyegrade-HEAD/eyegrade/mix_grades.py   eyegrade(Download)
    else:
        file_ = sys.stdout
    utils.write_grades(results, file_, utils.config['csv-dialect'])
    if output_filename is not None:
        file_.close()