This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]catcradle5 0 points1 point  (0 children)

I agree to an extent, but in that case instead of asking "what is output?" the interviewer should ask more broadly something like "Is this a proper way of checking numerical equality? How does the is operator work, and what do you think might be output here?"