Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
523 B
0
Indexable
Never
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}")