3 ms·
wouldn't any(q[:3]) (the 4th sentence) return true even if 2 or 3 of the above were correct? If I understand correctly, it should be true if exactly one of the
by arnvald 7y ago
wouldn't any(q[:3]) (the 4th sentence) return true even if 2 or 3 of the above were correct? If I understand correctly, it should be true if exactly one of the above is correct, not at least one.
Although, I'm probably wrong, since the question says "which answer is correct", implying only one can be correct.
- lovasoa 7y ago> wouldn't any(q[:3]) (the 4th sentence) return true even if 2 or 3 of the above were correct? Yes it would ! > If I understand correctly, it should be true if exactly one of the above is correct, not at least one. In logic, "one proposition is correct" is true even if two propositions are correct.