attrs( append get append spam 'porkset spam pork get __coerce__ typeerror'nonetypeobject is not callable [ get __getitem__ typeerror'nonetypeobject is not callable [ : get __getslice__ typeerror'nonetypeobject is not callable :\codepy - same startup code typeerrorunsupported operand type(sfor +'attrsand 'intx[ typeerror'attrsobject does not support indexing [ : typeerror'attrsobject is not subscriptable set objects here' the sort of interaction you should get comments explain which methods are called alsonote that sets are built-in type in python todayso this is largely just coding exercise (see for more on setspython from setwrapper import set set([ ] set([ ]runs __init__ set:[ set:[ __and__intersectthen __repr__ set("hello" [ ] [- ] [ :(' '' '[' '' ']__init__ removes duplicates __getitem__ for in zprint(cend=' 'join( upper(for in 'helolen( ) ( set:[' '' '' '' ']__iter__ (else __getitem__[ print__or__unionthen __repr__ __iter__ (else __getitem____len____repr__ "mello" "mello(set:[' '' '' ']set:[' '' '' '' '' ']part viclasses and oop