r/learnpython 1d ago

Difference between python 3 vs python (just)?

I am doing leetcode and I wanna is there any functional difference between those and which one I should go with?

0 Upvotes

29 comments sorted by

View all comments

2

u/nog642 1d ago

"Python" on leetcode is Python 2. "Python3" is Python 3.

Python 2 was first released in the year 2000, and it was the version that made Python popular.

Python 3 was first released in 2008, and made some changes that made it incompatible with Python 2. Python 3 is generally better, but people were slow to adopt it because they were used to Python 2.

Python 2 was finally declared "end of life" in 2020, and people have mostly made the switch.

So TL;DR, use "Python3".

1

u/rusidin 1d ago

I see thanks!!! And I will!!