movie_scores = [ ("Paddington in Peru", 6.8), ("Love Hurts", 5.4), ("DogMan", 6.8), ("Heart Eyes", 6.7), ("Companion", 7.3), ("Mufasa: The Lion King", 6.7), ("Flight Risk", 5.5), ("One of Them Days", 7.1), ("Becoming Led Zeppelin", 7.9), ("Moana 2", 6.8)] def print_movies(movie_db): for movie_pair in movie_db: (movie, score) = movie_pair print(movie + "\t" + str(score)) def print_movies2(movie_db): for movie_pair in movie_db: print(movie_pair[0] + "\t" + str(movie_pair[1])) def print_movies3(movie_db): for (movie, score) in movie_db: print(movie + "\t" + str(score)) def get_movie_score(movie_db, movie_title): for (movie, score) in movie_db: if movie == movie_title: return score return -1 def get_highest_rated_movie(movie_db): max_score = -1 max_movie = "" for (movie, score) in movie_db: if score > max_score: max_score = score max_movie = movie return max_movie def get_movies_above_threshold(movie_db, threshold): movies_above = [] for (movie, score) in movie_db: if score >= threshold: movies_above.append(movie) return movies_above