Ap CSP Create Task Submit
Ap CSP Create Task Submit
# Acknowledgments:
# The program structure and initial implementation were inspired by a coding example from an online
tutorial made by Roco Pietrofesa.
# Specifically, the structure and logic for filtering movies based on genres were adapted from the
tutorial.
"""
Parameters:
Returns:
"""
filtered_movies = []
filtered_movies.append((movie, genres))
return filtered_movies
def main():
"""
"""
# Movie data with associated genres, including happy, sad, angry, etc.
movies_data = {
}
previous_movies = []
while True:
print("\nAvailable genres:")
print("-", genre.capitalize())
user_input = input("\nEnter the genre of movie you want to watch today from the list above, you
can choose multiple to narrow down an option further, separate by comma and no spaces (or type
'exit' to quit): ").strip().lower()
if user_input == 'exit':
break
genre_list = user_input.split(',')
previous_movies.extend(filtered_movies)
if filtered_movies:
if more_movies != 'yes':
break
else:
if __name__ == "__main__":
main()