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