Numbers and math
You should see
0.30000000000000004
False
True
2.67
0.3
4.0 3.141592653589793 3 4
4 9 2 6
(3, 2)
100000000000000000000
3.5 3 3Decimal and compare.0.1 + 0.2 != 0.3 is not a Python bug; it is how binary floating point works in every language. For money use integer cents or Decimal. Interviewers ask about this.