Computer Science, asked by nitikanaveen09, 8 months ago

Consider b is frozen set, what happens to b.add(3)?

Error as frozen sets cannot be modified

3 will be added as a constant

3 will not be available for other general operations​

Answers

Answered by niluk0167
0

Answer:

b will remove bcoz 3 is constant

Explanation:

please follow me

Answered by surajnegi0600
0

Answer:

Error as frozen sets cannot be modified.

Explanation:

A frozen set is an immutable set, meaning its elements cannot be modified once it is created. Attempting to add or remove elements from a frozen set will result in an error being thrown. Frozen sets are useful in situations where you need a set that cannot be modified, such as when using it as a key in a dictionary or as a member of another set. Since b is a frozen set, the operation b.add(3) will result in an error, as it is not possible to add elements to a frozen set.

More questions and answers

https://brainly.in/question/52885581

https://brainly.in/question/51847942

#SPJ3

Similar questions