def printList(list_):
    """course list formatted output.

    Args:
        list_ (list): course list.
    """
    for i, oneCourse in enumerate(list_):
        cname = oneCourse.get('cname', '')
        teacher = oneCourse.get('teacher', '')
        op_time_1 = oneCourse.get('op_time_1', '')
        op_time_2 = oneCourse.get('op_time_2', '')
        if op_time_2 == None:
            op_time_2 = ''
        print('{}\t{}\t{}\t{}\t{}\t{}'.format(i, oneCourse['op_code'],
            cname, teacher, op_time_1, op_time_2))
