From daeb9b99f43e27327e35223cb76856aad76faa9c Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sun, 3 Oct 2021 16:16:33 -0400 Subject: [PATCH] [F] A2 P3 Q3 Fix --- assignments/a2/a2_part3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assignments/a2/a2_part3.py b/assignments/a2/a2_part3.py index 562e7b3..8896fe9 100644 --- a/assignments/a2/a2_part3.py +++ b/assignments/a2/a2_part3.py @@ -248,7 +248,7 @@ def is_section_compatible(schedule: dict[str, tuple[str, str, tuple]], - section matches the format for a section described by the assignment handout. - schedule matches the format for a schedule described by the assignment handout. """ - return all([not sections_conflict(section, s) for s in schedule.values]) + return all([not sections_conflict(section, s) for s in schedule.values()]) def is_course_compatible(schedule: dict[str, tuple[str, str, tuple]], @@ -264,7 +264,7 @@ def is_course_compatible(schedule: dict[str, tuple[str, str, tuple]], - schedule matches the format for a schedule described by the assignment handout. - course[0] not in schedule """ - return any([is_section_compatible(section, schedule) for section in course[2]]) + return any([is_section_compatible(schedule, section) for section in course[2]]) def compatible_sections(schedule: dict[str, tuple[str, str, tuple]],