Update u5/kindergarten_garden.py

This commit is contained in:
Roman Dmytruk 2026-10-13 12:50:47 +00:00
parent fc53cd35d2
commit 88f3b6caaa

View File

@ -21,7 +21,7 @@ class Garden():
self.diagrm: str = diagrm self.diagrm: str = diagrm
self.rows: str = diagrm.splitlines() self.rows: str = diagrm.splitlines()
if student is not None: if students is not None:
self.students = sorted(students) self.students = sorted(students)
else: else:
self.students = self.DEFULT_STUDENTS self.students = self.DEFULT_STUDENTS
@ -30,7 +30,7 @@ class Garden():
if students_name not in self.students: if students_name not in self.students:
raise NoSuchStudentException(f"Učeň {student_name} neexistuje v tomto záhone.") raise NoSuchStudentException(f"Učeň {student_name} neexistuje v tomto záhone.")
student_index = self.students.index(students_name) students_index = self.students.index(students_name)
start_col = student_index * 2 start_col = student_index * 2