Ask Your Question

Revision history [back]

The problem is in the line

dict = {j:Set(int(Vec[i]))}

The Set constructor takes an iterable object and the python int type is not iterable. If you change the line to:

dict = {j:Set( [int(Vec[i])] )}

that problem should go away.