What is the difference between Python 2 and Python 3?

Python basics · Freshers and experienced

Model answer

Python 2 reached end of life in 2020 and is no longer supported. Python 3 changed print to a function, made strings Unicode by default, made / return a float, and improved many libraries. All new work should use a supported Python 3 version.

Learn this topic

What Is Python? Install It and Write Your First Program in the course Python for Beginners: Learn to Code with Real Projects.

Sign in to add your own answer.

More questions