Untitled
unknown
plain_text
a year ago
523 B
1
Indexable
types = list(set(movie_data['type'])) print("Unique type values:", types, '\n') def separate_types(strings):# create separate_types() function here shows = [] movies = [] for movie in strings: if 'movie' in movie.lower(): movie = movie.lower() movies.append(movie) else: shows.append(movie) return movies, shows movie_types, show_types = separate_types(types) print(f"Processed show types: {show_types}") print(f"Processed movie types: {movie_types}")
Editor is loading...