-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMovie Recommendation System
More file actions
51 lines (51 loc) · 1.12 KB
/
Copy pathMovie Recommendation System
File metadata and controls
51 lines (51 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
print("===================================")
print(" MOVIE RECOMMENDATION SYSTEM")
print("===================================")
movies = {
"action": [
"Avengers",
"John Wick",
"Batman",
"Mission Impossible"
],
"comedy": [
"Mr Bean",
"The Mask",
"Friends",
"Home Alone"
],
"horror": [
"Conjuring",
"Nun",
"Insidious",
"Annabelle"
],
"romance": [
"Titanic",
"La La Land",
"The Notebook",
"Your Name"
],
"science fiction": [
"Interstellar",
"Inception",
"Avatar",
"The Matrix"
]
}
print("\nAvailable Genres:")
print("- Action")
print("- Comedy")
print("- Horror")
print("- Romance")
print("- Science Fiction")
genre = input("\nEnter your favorite genre: ").lower()
if genre in movies:
print("\nRecommended Movies For You:\n")
count = 1
for movie in movies[genre]:
print(count, ".", movie)
count += 1
else:
print("\nSorry! Genre not available.")
print("\nThank you for using the Movie Recommendation System!")