'''print movie, watched and unwatched movie data''' ''' print('-----------> Movie Information: ') show.print_input_dictionary(movie_dic) print('-----------> Watched Movie Information: ') show.print_input_dictionary(watched_movie_dic) print('-----------> Unwatched Movie Information: ') show.print_input_dictionary(unwatched_movie_dic) ''' '''output''' op = Output() top_actor_list_with_movies = op.create_top_actor_list_with_movie_title( movie_dic) top_director_list = op.create_top_director_list(movie_dic) rating, top_rating_from_unwatched_movies = op.top_rated_in_unwatchedlist( watched_movie_dic, unwatched_movie_dic) result = '' result += show.print_top_actor_with_movies( top_actor_list_with_movies) + '\n' result += show.print_top_director(top_director_list) + '\n' result += show.print_top_rated_from_unwatched( rating, top_rating_from_unwatched_movies) + '\n' '''write final output to the file''' fa.write_file(fa.required_output_txt, result) print( 'Thank you for waiting! Output is written to the outputs folder!') except Exception as e: print('Program error!!! Error message: ' + str(e))