subject

The following program includes fictional sets of the top 10 male and female baby names for the current year. Write a program that creates: 1. A set all_names that contains all of the top 10 male and all of the top 10 female names. 2. A set neutral_names that contains only names found in both male_names and female_names. 3. A set specific names that contains only gender specific names Sample output for all_names {"Michael', Henry', 'Jayden', 'Bailey "Lucas', 'Chuck', 'Aiden', 'Khloe', 'Elizabeth', 'Maria', 'Veronica', 'Meghan', 'John', Samuel', 'Britney', 'Charlie', 'Kim') NOTE: Because sets are unordered, they are printed using the sorted() function here for comparison 3 1 mole_names - John, Bailey', charlie', 'Chuck', 'Michael Samuel, ayden', 'Alden', "Henry', 'Lucas 2 female_names (Elizabeth Meghan', 'Kim, Khloe', 'Bailey Jayden', 'Alden', 'Britney', 'Veronica', 'Marts) 4 * Use set methods to create sets all_names, neutral names, and specific names 5 611_names - Cale_names Female_nanes) 7 neutral nanes'female nanes 'male nanes) print (sorted(all nanes) 9 print sorted(neutral nanes) 10 print (sorted(specific names)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:50
What are the advantages of google cloud ?
Answers: 2
question
Computers and Technology, 22.06.2019 02:00
Alocal reaction will occur at the site of the exposure such as irritation or damage to the skin eye or local reaction will occur at the site of the exposure such as irritation or damage to the skin ireland lounges
Answers: 3
question
Computers and Technology, 22.06.2019 19:30
Once the data center routes to the destination server that hosts the website, what's the next step in the internet process? user’s browser renders html code from destination server into web page request goes through router/model and isp request routed to nameserver and datacenter
Answers: 2
question
Computers and Technology, 22.06.2019 23:20
How can you tell if someone sent you a text message to your email instead of a email
Answers: 1
You know the right answer?
The following program includes fictional sets of the top 10 male and female baby names for the curre...
Questions
question
Health, 06.11.2020 08:40
question
Mathematics, 06.11.2020 08:40
question
Mathematics, 06.11.2020 08:40
Questions on the website: 13722363