Update u5/kindergarten_garden.py
This commit is contained in:
parent
88f3b6caaa
commit
529cd9bfc9
@ -4,7 +4,7 @@ class NoSuchStudentException(Exception):
|
||||
|
||||
class Garden():
|
||||
|
||||
STUDENTS = [
|
||||
DEFAULT_STUDENTS = [
|
||||
"Alena", "Boris", "Cyril", "Daniel",
|
||||
"Eva", "František", "Gitka", "Helena",
|
||||
"Ivana", "Jozef", "Karol", "Ladislav"
|
||||
@ -24,7 +24,7 @@ class Garden():
|
||||
if students is not None:
|
||||
self.students = sorted(students)
|
||||
else:
|
||||
self.students = self.DEFULT_STUDENTS
|
||||
self.students = self.DEFAULT_STUDENTS
|
||||
|
||||
def plants(self, students_name : str):
|
||||
if students_name not in self.students:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user