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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 16:30, vxdsvsfdds
Which type of computing device is best suited to having a digital pen as an input device? a. personal computer b. personal digital assistant c. smart television d. laptop e. mobile phone
Answers: 3
image
Computers and Technology, 23.06.2019 02:30, reyne36
Rafael needs to add a title row to a table that he has inserted in word. what should he do? use the alignment options. use the merge and center option for all the cells in the top row. use the merge and center option on the first two cells in the top row. none of the above
Answers: 3
image
Computers and Technology, 23.06.2019 07:10, anika420
If you want to import a picture into a dtp application, what must you do first? draw an image frame. import text. open the folder containing the file. select get image… from the windows menu.
Answers: 2
image
Computers and Technology, 24.06.2019 01:00, bellamyciana
What are two ways to access the options for scaling and page orientation? click the home tab, then click alignment, or click the file tab. click the file tab, then click print, or click the page layout tab. click the page layout tab, or click the review tab. click the review tab, or click the home tab?
Answers: 2
You know the right answer?
The following program includes fictional sets of the top 10 male and female baby names for the curre...

Questions in other subjects: