Untitled
Anonymous
plain_text
02/06/2024 7:57 PM
700 B
18
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...