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, 23.06.2019 12:40
Curriculum exam to process a resident's payment, you must click on onesite payments home page. from the a. reports b. my settings o c.transactions o d. rent tab
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
Which steps will open the system so that you can enter a question and do a search for
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
Write and test a python program to find and print the largest number in a set of real (floating point) numbers. the program should first read a single positive integer number from the user, which will be how many numbers to read and search through. after reading in all of the numbers, the largest of the numbers input (not considering the count input) should be printed.
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
How can we take picture in this app
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
Mathematics, 14.02.2020 21:22
question
Mathematics, 14.02.2020 21:22
question
Mathematics, 14.02.2020 21:22
question
Chemistry, 14.02.2020 21:22