subject

Male_names = { 'john', 'bailey', 'charlie', 'chuck', 'michael', 'samuel', 'jayden', 'aiden', 'henry', 'lucas' } female_names = { 'elizabeth', 'meghan', 'kim', 'khloe', 'bailey', 'jayden', 'aiden', 'britney', 'veronica', 'maria' } # use set methods to create sets all_names, neutral_names, and specific_names. all_names = { 'john', 'bailey', 'charlie', 'chuck', 'michael', 'samuel', 'jayden', 'aiden', 'henry', 'lucas', 'elizabeth', 'meghan', 'kim', 'khloe', 'bailey', 'jayden', 'aiden', 'britney', 'veronica', 'maria' } all_names = all_names. union(male_names, female_names) neutral_names = neutral_names. intersection(male_names, females_names) specific_names = all_names. symmetric_difference(neutral_names) print(sorted(all_names)) print(sorted(neutral_names)) print(sorted(specific_names))

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 22:00, marvezunderwood
When determining the classification of data, which one of the following is the most important consideration? a. processing systemb. valuec. storage mediad. accessibility
Answers: 2
image
Computers and Technology, 22.06.2019 17:30, uh8hardiek
Ou listened to a song on your computer. did you use hardware or software?
Answers: 2
image
Computers and Technology, 22.06.2019 17:30, kallee10
The forerunner to cell phones, pdas, and smartphones was
Answers: 1
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
You know the right answer?
Male_names = { 'john', 'bailey', 'charlie', 'chuck', 'michael', 'samuel', 'jayden', 'aiden', 'henry'...

Questions in other subjects:

Konu
History, 01.12.2020 01:00
Konu
Spanish, 01.12.2020 01:00
Konu
Mathematics, 01.12.2020 01:00
Konu
Mathematics, 01.12.2020 01:00