Обновить u5/kindergarten_garden.py
This commit is contained in:
parent
11ca323fe5
commit
1829a679e2
@ -1,7 +1,7 @@
|
||||
class NoSuchStudentException(Exception):
|
||||
"""Žiak nie je v zozname."""
|
||||
|
||||
DEFAULT_STUDENTS = [
|
||||
DEFAULT_STUDENTS = [
|
||||
"Alena", "Boris", "Cyril", "Daniel", "Eva", "František",
|
||||
"Gitka", "Helena", "Ivana", "Jozef", "Karol", "Ladislav",
|
||||
]
|
||||
@ -16,7 +16,7 @@ class Garden():
|
||||
raise ValueError("Row has to be string")
|
||||
self.rows.append(row)
|
||||
|
||||
garden = Garden("VVCG\nWRC")
|
||||
garden = Garden("VVCG\nVVRC")
|
||||
print([item[1:3] for item in garden.rows])
|
||||
garden.rows.append(Garden("s\ns"))
|
||||
print(garden.rows)
|
||||
Loading…
Reference in New Issue
Block a user