My question is related to the sum function in python.
So my code is
def black_jack(a, b): if sum(a, b) > 21: return 0 else:
sum expects iterable object (like list). So the code should be:
def black_jack(a, b): if sum([a, b]) > 21: return 0 else: return sum([a, b]) print black_jack(10, 5)