def is_true(a, b): if a and b: return 1 if not a and not b: return 0 return -1 print(is_true(True, False))