Ask Your Question

Revision history [back]

set is a Python class while Set is a Sage class. The documentation for Set says

If X is a list, tuple, Python set, or "X.is_finite()" is true, this returns a wrapper around Python's enumerated immutable frozenset type with extra functionality. Otherwise it returns a more formal wrapper.

If you need the functionality of mutable sets, use Python's builtin set type.

What questions do you have after reading this?