| 1 | initial version |
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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.