@malik maybe you can take a look at this example how to transfer Sets between KNIME and Python and also put them to a similar use like you might have tried to do (comparing the ‘distance’ between string item sets):
a
The results would look something like this:
Sets 3 and 5 are deliberately identical