Sets A set is a collection of things. For example, the items you wear is a set: these include hat, shirt, jacket, pants, and so on. You write sets inside curly brackets like this: {hat, shirt, jacket, pants, ...} You can also have sets of numbers: Set of whole numbers : {0, 1, 2, 3, ...} Set of prime numbers : {2, 3, 5, 7, 11, 13, 17, ...} Ten Best Friends You could have a set made up of your ten best friends: {alex, blair, casey, drew, erin, francis, glen, hunter, ira, jade} Each friend is an "element" (or "member") of the set. It is normal to use lowercase letters for them. Now let's say that alex, casey, drew and hunter play Soccer : Soccer = {alex, casey, drew, hunter} (It says the Set "Soccer" is made up of the elements alex, casey, drew and hunter.) And casey, drew and jade play Tennis : Tennis = {casey, drew, jade} We can put their names in two separate circles: Union You can now list your friends t...
Comments
Post a Comment