{}
run-icon
main.py
# Question: Create a Movie Recommendation System to store movies in list and filter by genre/rating. movies = [ ["Spiderman series", "Action", 8], ["Hera pheri", "Comedy", 9], ["Your Name", "Romance", 7], ] print("Movie List:") for i in movies: print(i) genre = input("Enter genre: ") print("Movies in this genre:") for i in movies: if i[1] == genre: print(i) rating = int(input("Enter minimum rating: ")) print("Recommended Movies:") for i in movies: if i[2] >= rating: print(i)
Output