1: #line 163 "sets.ipk" 2: import interscript.core.sets 3: set = interscript.core.sets.set 4: 5: s1 = set(1,2,3,1,2) 6: s2 = set(10,20,30,3) 7: print 's1=',s1 8: print 's2=',s2 9: print 's1|s2=',s1 | s2 10: print 's1&s2=',s1 & s2 11: print 's1^s2=',s1 ^ s2 12: print 's1+s2=',s1 + s2 13: print 's1-s2=',s1 - s2 14: print 's1==s1=',s1 == s1.copy() 15: assert (s1 ^ s2) == ((s1 | s2) - (s1 & s2)) 16: print 's1[:]=',s1[:] 17: print 's1[1:-1]=',s1[1:-1] 18: 19: print 's1==s2=',s1 == s2 20: print 's1<s2=',s1 < s2 21: print 's1>s2=',s1 > s2 22: 23: print 's1.le(s2)=',s1.le(s2) 24: print 's1.lt(s2)=',s1.lt(s2) 25: print 's1.ge(s2)=',s1.ge(s2) 26: print 's1.gt(s2)=',s1.gt(s2) 27: 28: s1 = set(1,2,3,4,5,6,7,8,9) 29: s2 = set(1,3,5,7,9) 30: print 's1=',s1 31: print 's2=',s2 32: print 's1.le(s2)=',s1.le(s2) 33: print 's1.lt(s2)=',s1.lt(s2) 34: print 's1.ge(s2)=',s1.ge(s2) 35: print 's1.gt(s2)=',s1.gt(s2) 36: