In principle, there are two versions - Python 2 and 3. Of course, there are 2.6, 2.7, 3.1, etc., but in the general case nx is compatible with n. (x + 1), has just improved in a sense - with neat language additions, new stdlib modules, etc. And although, for example, 2.5 and 3.0 are still available, you should usually use the latest versions (today 2.7 and 3.1) if you do not have to use older versions for some external reasons. See various other questions or the Python wiki for help between 2.x and 3.x in general.
But since you want to use web frameworks, the answer is clear: you need to use Python 2, since none (or at least none of the popular ones) support Python 3 (for now).
delnan
source share