class Controller: def __init__(self): self.model = Model() def add_movie(self, movie_obj): self.model.add_movie(movie_obj) def get_all_movies(self): self.model.get_all_movies()
class View: def __init__(self): self.controller = Controller() self.model = Model() def show_all(self): movies = self.model.get_all_movies() for movie in movies: print(movie, end='\n\n') def add_movie(self, movie_obj): self.controller.add_movie(movie_obj)