You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ChocoPy/pa3-tests/core/op_logical.py

14 lines
242 B

def f() -> bool:
print("f called")
return True
def g() -> bool:
print("g called")
return False
if f() or g(): # Short-circuit
if g() and f(): # Short-circuit
print("Never")
else:
print(not (f() and (g() or f())))