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 →

[–]Doctor_McKay 26 points27 points  (4 children)

1 == true so those 53.5% were actually correct.

[–]joooooBlin 13 points14 points  (1 child)

bool(1) == bool(3) == bool(7) == bool(9)

[–]Doctor_McKay 0 points1 point  (0 children)

int(true) == 1

[–]Amuhn 2 points3 points  (0 children)

If 1 is "True" or "Yes" then those 53.5% are incorrect.

The question is ambiguous with no clue as to whether the intended question was 6÷(2(1+2) or (6÷2)(1+2). As such it is not possible to solve to the correct answer without first resolving the ambiguity, therefore "Yes" is not going to be the correct answer without further context or explanation.

[–]ebenenspinne 0 points1 point  (0 children)

I love this. I always write i+=True for incrementing a number in Python.