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

Q & ACategory: PythonConsider b is frozen set, what happens to b.add(3)?
Admin Staff asked 5 years ago

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

a)3 will not be available for other general operations
b)3 will be added as a constant
c)Error as frozen sets cannot be modified

1 Answers
Admin Staff answered 5 years ago

a)3 will not be available for other general operations