Versions of Python | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Versions of Python

Whatā€™s the difference between version 2, 3, and 7?

21st May 2021, 3:07 PM
cfmlzt
2 Respostas
+ 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 ^^
21st May 2021, 3:19 PM
visph
visph - avatar
+ 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.
21st May 2021, 3:22 PM
you are smart. you are brave.
you are smart. you are brave. - avatar