I was making the difference between two sets to see what had changed when I noticed that whenever I had one element which was a repeated sequence it would be represented as only one char.
Example:
>>> set("aaaa")
{'a'}
How can I represent it as {'aaaa'} so I can make the diff between two sets and get the right value? If it's not possible using sets, what is the easiest way to compare two data structures and get the diff in python3?
Example:
>>> a = set(['red', 'blue', 'green'])
>>> b = set(['red', 'green'])
>>> a
{'green', 'red', 'blue'}
>>> b
{'red', 'green'}
>>> a - b
{'blue'}