What is the difference between Python 2 and Python 3?

Entry Python

Answer

Key differences:
• print is a function in Python 3
• / returns float in Python 3
• Strings are Unicode by default
• Most libraries support Python 3 only

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice