Adding floats in a different order, and NaN
Predict the outputHardPython only
print(0.1 + 0.2 + 0.3 == 0.3 + 0.2 + 0.1)
print(1e16 + 1 == 1e16)
nan = float("nan")
print(nan == nan)
print(nan in [nan])
This question is part of Pro+
Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.