Write exactly_two(a, b, c) that takes three booleans and returns True if exactly two of them are True, and False otherwise (including when all three are True).
Examples
Input: a = True, b = True, c = False
Output: True
Input: a = True, b = True, c = True
Output: False
Input: a = False, b = False, c = True
Output: False
Constraints
a,b,care booleans
Goals
- Build a compound condition from three booleans
- Distinguish 'at least two' from 'exactly two'