Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Py 3 vs Py 2 Usage

Here we learn Python 3, but where does one use Python 2?

Is anything even still build in 2 or is something that exists in 2 still running in 2 but anything new is build in 3?

2 Answers

Python 2 is just Python 3, but older. Python 3 was released in 2008 -- about 12 years ago -- and supersedes Python 2. While there are some popular libraries and companies that still haven't converted, those are few and far between. Python 2 officially reached full end-of-support on January 1, 2020, and you should never use it again. Going forward, you should always use Python 3

Thanks

  • Of course both Python 3 and Python 2 are both used.
  • From what I've seen, it based on personal preference.
  • But if you are working for a company and they use Python 3, you will need to use Python 3 as well. The same goes for Python 2.
  • The main difference is some syntax and features differentials.
  • I've mainly worked with Python 3, so I prefer Python 3 over Python 2.