Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Es 3 test 14

F
Francesco284 (770 points)
0 3 7
in Es3 by (770 points)
recategorized by
premessa. la richiesta del metodo registi(self) è (- registi(self)     che torna un set contenente le istanze di oggetti di tipo Regista)

ma a quanto pare il test 14 vuole come risultato l'insieme vuoto, come mai?

per provare ho messo al metodo registi(self) - return set() e cosi andava ma giustamente non passava i test sul numero dei registi con cui un attore ha lavorato.

in sintesi se io richiamo Attore.registi() mi restituisce un set contentente le istanze di oggetti di tipo Regista.

Scusate forse non mi sono espresso bene ma non c'ho capito niente manco io
356 views

1 Answer

andrea.sterbini (207920 points)
750 1267 2373
by (208k points)
Un oggetto di tipo Attore non può conoscere in quali Films ha lavorato e quindi con quali Registi se non è stata ancora chiamata la funzione che crea i cataloghi dei Film e dei Registi.

Per questo all'inizio ha sia come registi che come film due insiemi vuoti.