3 ms·
Python 2 or 3?
by woah 6y ago
Python 2 or 3?
- VWWHFSfQ 6y agowhichever one is on your computer
- jfkebwjsbx 6y agoBoth work. 1) Your distribution vendor most likely supports both and allows you to install both at the same time. 2) Your company has probably a policy for that. 3) Small Python scripts are trivial to make compatible with both major versions. 4) Python 2 is deprecated but supported. Just write Python 3 for new code.
- hisham_hm 6y agoPython 2 was EOL this year. Short answer should be just "Python 3" by now.