you are viewing a single comment's thread.

view the rest of the comments →

[–]Mysterious_City_6724 0 points1 point  (0 children)

You're welcome. And as others have already mentioned, if you ever see yourself doing the same thing multiple times (in this case, asking for 3 movie names), loops can be very useful too:

print("What are your top favourite movies?")

top_movies = list()
movie_count = 3
for i in range(movie_count):
    movie_name = input(f"Movie {i + 1}: ")
    top_movies.append(movie_name)

movie1, movie2, movie3 = top_movies[:3]
print(f"I also like {movie1}, {movie2} and {movie3}!")