I am completely stuck and am looking for guidance. I am creating my own version of the sets class, making the class called Set. I have created a test function as well. Everything works great until I get to the union/subtract part.
Code:
def intersection(self,set2):
self.inter=Set([])
for i in self.elements:
for j in set2.elements:
if i == j:
self.inter