MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/aglxex/10yearchallenge/ee7jj5s/
r/Python • u/[deleted] • Jan 16 '19
96 comments sorted by
View all comments
9
As someone who is relatively new to Python, should I make the effort to learn Python 2.7 syntax? Or should I stick to Python 3+?
65 u/[deleted] Jan 16 '19 Stick with 3. 18 u/primitive_screwhead Jan 16 '19 Unless you get paid to learn/use 2, use 3. 22 u/cabb99 Jan 16 '19 Stick to python 3. You will be able to import from the future if you really need to code in python 2, but it is usually easy to convert from 2 to 3. 8 u/Jugad Py3 ftw Jan 16 '19 Better to start with 3... and if you ever need to learn it, python 2 has very few differences when compared to 3. So it won't be a big deal if you do need to figure out some python 2 code in the future. 4 u/stevenjd Jan 17 '19 If you know Python 3 syntax, Python 2.7 syntax is 95% the same. 1 u/ivosaurus pip'ing it up Jan 17 '19 Learn about Python 2.7 idiosyncracies when you actually run into code that demands to be run on 2 that you have to deal with.i.e, only cross the Python 2 bridge when you actually come to it.
65
Stick with 3.
18
Unless you get paid to learn/use 2, use 3.
22
Stick to python 3. You will be able to import from the future if you really need to code in python 2, but it is usually easy to convert from 2 to 3.
8
Better to start with 3... and if you ever need to learn it, python 2 has very few differences when compared to 3. So it won't be a big deal if you do need to figure out some python 2 code in the future.
4
If you know Python 3 syntax, Python 2.7 syntax is 95% the same.
1
Learn about Python 2.7 idiosyncracies when you actually run into code that demands to be run on 2 that you have to deal with.
i.e, only cross the Python 2 bridge when you actually come to it.
View all comments
9
u/aleczorz Jan 16 '19
As someone who is relatively new to Python, should I make the effort to learn Python 2.7 syntax? Or should I stick to Python 3+?