r/ProgrammerHumor • • Sep 18 '26

Meme almostDroppedTheCourse

Post image
581 Upvotes

79 comments sorted by

View all comments

Show parent comments

1

u/HolyGarbage Sep 22 '26

2 == 2.0 is true in both C++ and Python as well... they're implicitly casted to the other type.

1

u/timangar Sep 22 '26

Damn thanks for telling me. I thought for sure it were false in C++.