~fkfd/sections

c0a898eeabb3881f56450cd8988d58f0fd105c6e — Frederick Yin 1 year, 7 months ago ff622cf
Print sections in order
1 files changed, 2 insertions(+), 1 deletions(-)

M main.py
M main.py => main.py +2 -1
@@ 20,6 20,7 @@ def print_timetable(courses: dict, choice: list):
            dow, prd = parse_period(period)
            timetable[prd][dow] = f"{course}S{sec}"

    print(", ".join([f"{course}S{sec}" for course, sec in choice]))
    print("\t".join(DAYS_OF_WEEK))
    for periods in timetable:
        print("\t".join(periods))


@@ 36,7 37,7 @@ def section_choices(courses: dict):
        return []

    # remove one course from courses and store it here
    course_name = list(courses.keys())[0]
    course_name = list(courses.keys())[-1]
    course = courses.pop(course_name)
    if not courses:
        # base case