Major conceptual difference between python version 2 and python version 3
Nov 11, 2023
Before python version 3, python interpreter understand that an string value always greater than integer value,
For Example
When we compare string and integer like
‘2’ < 3
Interpreter display ‘False’ output
But in python 3, the community developer decided that since such expressions don’t have an obvious meaning and changed the rule of python version 2 that we cannot compare string with integer.So that, if we forcefully compare string with integer python interpreter generate an error