class Cat: def __init__(self, name, birth_year): self.mother = None self.children = [] pass def read_data(filename="cats.txt"): """ Funkcia nacita data zo vstupneho suboru, vytvori potrebne objekty a vrati dvojicu slovnikov :param filename: nazov suboru, alebo cesta k nemu :return: slovnik maciek a slovnik utulkov """ with open(filename, "r") as my_file: for line in my_file.readlines(): line = line.strip() pass return None, None #here return your dictionaries def print_offsprings_tree(cat_name, cat_dictionary): pass def print_shelter_cats(shelter_name, shelter_dictionary): pass def sort_shelter(shelter_name, shelter_dictionary): pass def find_eldest(cat): pass def test(): cats, shelters = read_data() #here you can write your tests test()