The module setswas added in Python 2.3, but the built-in set type was added to the language in 2.4 with essentially the same interface. (Starting with version 2.6, the module is setsdeprecated.)
This way you can use sets as early as 2.3 if you
import sets
But you will get DeprecationWarningif you try this import in 2.6
To establish the understanding and syntax of a given literal, that is, the ability to say
a = { 1, 2, 3 }
Python 3.0. , , Python 3.0a1, Python 3.0, 2007 . Python 3
2.7. 3.x Python 2.7