First time here? Check out the FAQ!
answered 12 years ago
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:
Set
int
dict = {j:Set( [int(Vec[i])] )}
that problem should go away.