Given any number of boolean flags function should return true if and only if one of them is true while others are false. If function is called without arguments it should return false.

```python
  only_one() == False
  only_one(True, False, False) == True
  only_one(True, False, False, True) == False
  only_one(False, False, False, False) == False  
```

Difficulty: introductory

Starter code:

def only_one(*args):
	

Solutions:
def only_one(*args):
    return sum(args) == 1

def only_one(*args):
    return args.count(True)==1

def only_one(*args):
    count = 0
    for item in args:
        if item:
            count += 1
        if count == 2:
            return False
    return True if count == 1 else False

def only_one(*x):
    return x.count(True) == 1

def only_one(*flags):
    return sum(flags) == 1

from collections import Counter
def only_one(*booleans):
    return Counter(booleans)[True] == 1

only_one = lambda *a: sum(a) == 1

def only_one(*flags):
    return len([a for a in flags if a])==1


def only_one(*bool):
    sum = 0
    for value in bool:
        if value:
            sum += 1
    if sum == 1:
        return True
    else:
        return False

def only_one(*bools):
    return sum(x for x in bools) == 1