0
Versions of Python
Whatâs the difference between version 2, 3, and 7?
2 Answers
+ 3
there is no version 7 in python
there are two major version: 2 and 3... version 3 is more recent (and should be used), while version 2 is still existing because a lot of code written with it are still running ^^
last version 2 was 2.7
as far as I know, last version of python is about 3.10... but a lot of installations still run 3.4 to 3.7
version 2 vs 3 have structural differences wich break compatibility, even if some features of 3 could be enabled in 2... search on google if you really need to know them (but you should focus on python 3 nowadays and forgot python 2).
if you encounter code examples in python 2, pass your way and search for up to date examples in python 3 ^^
+ 3
there are some syntax changes between 2 and 3. if you are new, i would recommend using the latest version of 3. im not sure what you mean by 7, because there is no version 7.
maybe you mean version 3.7.... which is version 3.