Data Handling Part 3.2
Data Handling Part 3.2
1) For numeric types, the values are compared after removing trailing
zeros after decimal point from a floating point number.
Capital letters are considered lesser than small letters eg. ‘A’ is less
than ‘a’
False
Important You should not use == to compare two
floating point values, the reason is that floating point
numbers are stored in some precision limit and which may
result in some rounding off. All this will not yield the
correct result.
l
The reason behind this behaviour is that there are
a few cases where Python creates two different
objects even though both store the same value.
These are: