[Tutor] set and sets.Set

Bala subramanian bala.biophysics at gmail.com
Wed Apr 21 18:28:03 CEST 2010


Friends,
Someone please write me the difference between creating set with set() and a
sets.Set().

>>> a=set([1,2,3])
>>> b=sets.Set([1,2,3])
>>> print a
set([1, 2, 3])
>>> print b
Set([1, 2, 3])

Thanks,
Bala
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100421/41537fdd/attachment.html>


More information about the Tutor mailing list