if genre: movies = [m for m in movies if genre.lower() in m['genres']]
Based on these criteria, here are some of the top-rated movies currently available on Amazon Prime: top rated movies on amazon prime
This includes the UI structure, logic for curation, user engagement elements, and a sample data set. if genre: movies = [m for m in movies if genre