Computer Science, asked by Jivi202, 5 months ago

How can we define a set of properties with same value to a number of elements? Give an example. (Ch-5, Cascading style sheets) ​

Answers

Answered by Rameshjangid
0

Answer:- We can define a set as a collection of well defined objects.

Sets are unordered.

Set elements are unique. Duplicate elements are not allowed.

A set may be modified by itself, but the elements contained in the set should be of immutable type.

A set can be created in the two ways. We can define a set with the built-in set() function:

x = set(<either>)

In this case, the argument <either> is an integrable—again, for the moment, think list or tuple—that generates the list of objects to be included in the set.

When a set is defined this way, each <obj> becomes a distinct element of the set, even if it is an integrable. The behavior shown here is similar to that of the .append() list method.

To know more about the given data please go through the following

Link1:- https://brainly.in/question/1062292?

Link2:- https://brainly.in/question/5158309?

#SPJ1

Similar questions