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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:30
The following is an excerpt from a slide presentation. today we will inverse operations solving equations using inverse operations solving inequalities using inverse operations from which part of the presentation does the slide most likely come from? a. introduction b. outline c. body d. conclusion
Answers: 1
question
Computers and Technology, 23.06.2019 03:10
Fill in the following program so that it will correctly calculate the price of the orange juice the user is buying based on the buy one get one sale.#include //main functionint main() { int cartons; float price, total; //prompt user for input information printf("what is the cost of one container of oj in dollars? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & price); printf("how many containers are you buying? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & cartons); if ( [ select ] ["cartons / 2", "cartons % 1", "cartons % 2", "cartons % price", "cartons / price", "cartons / total"] [ select ] ["=", "==", "! =", "< =", "> =", "< "] 0) total = [ select ] ["price * cartons", "cartons * price / 2 + price", "(cartons / 2) * price", "cartons / (2.0 * price)", "(cartons / 2.0) * price + price", "((cartons / 2) * price) + price"] ; else total = ((cartons / 2) * price) + price; printf("the total cost is $%.2f.\n", total); return 0; }
Answers: 2
question
Computers and Technology, 24.06.2019 12:00
Jack is assisting his younger sibling mary with her mathematics assignment, which includes a study of the number system. jack explains to mary that whole numbers are counting numbers that could be used to record the number of fruits in a basket. which data type represents whole numbers? a.integers.b.floating-point numbers. c.strings.d.boolean
Answers: 1
question
Computers and Technology, 24.06.2019 15:50
Subscribe to j p g a m e t u b e on you tube ?
Answers: 2
You know the right answer?
Male_names = { 'john', 'bailey', 'charlie', 'chuck', 'michael', 'samuel', 'jayden', 'aiden', 'henry'...
Questions
question
Mathematics, 29.01.2020 16:55
question
Mathematics, 29.01.2020 16:55
question
Social Studies, 29.01.2020 16:55
Questions on the website: 13722363