Update u5/kindergarten_garden.py

This commit is contained in:
Maksym Liashenko 2026-10-13 12:44:02 +00:00
parent 0fb89b4a90
commit 3933e94b78

View File

@ -28,8 +28,8 @@ class Garden:
}
def __init__(self, diagram, students=DEFAULT_STUDENTS):
self.students = sorted(students)
self.rows = diagram.split("\n")
self.students = sorted(students)
self.rows = diagram.split("\n")
def plants(self, student_name):
if student_name not in self.students: