Respuesta :
The program analyses a set of male and female names and displays, the combined set of names, specific names and neutral names. The program written in python 3 goes thus :
male_names = {'John', 'Bailey', 'Charlie', 'Chuck', 'Michael', 'Samuel', 'Jayden', 'Aiden', 'Henry', 'Lucas'}
#set of male names
female_names = {'Elizabeth', 'Meghan', 'Kim', 'khloe','Bailey', 'Jayden' , 'Aiden', 'Britney', 'Veronica', 'Maria'}
#set of female names
neutral_names = male_names.intersection(female_names)
#names common to both males and females
all_names = male_names.union(female_names)
#set of all baby names ; both male and female
specific_names = male_names.symmetric_difference(female_names)
#name in one set and not in the other
print(all_names)
print(' ')
#leaves a space inbetween the lines
print(specific_names)
print(' ')
print(neutral_names)
A sample run of the program is attached.
Learn more :https://brainly.com/question/9908895
