Computers and Technology

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)

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 20:00, spetgrave069
2.)how does a graphical user interface (gui) on a touchscreen interface differ from a gui on a desktop or laptop? a.)a finger or stylus is used instead of a pointer. b.) a magic wand is used instead of a pointer. c.)users speak commands instead of using a pointer. d.)users visualize commands instead of using a pointer.
Answers: 1
image
Computers and Technology, 22.06.2019 07:30, ghopk5929
In the film "epic 2015," epic is the name for:
Answers: 3
image
Computers and Technology, 23.06.2019 09:30, ranmmm
The place where the extended axis of the earth would touch the celestial sphere is called the celestial
Answers: 1
image
Computers and Technology, 23.06.2019 13:30, gamingisfun
Me ! evelyn is a manager in a retail unit. she wants to prepare a report on the projected profit for the next year. which function can she use? a. pmt b. round c. division d. what-if analysis
Answers: 2
Do you know the correct answer?
The following program includes fictional sets of the top 10 male and female baby names for the curre...

Questions in other subjects:

Konu
Mathematics, 23.11.2020 22:30