RosettaCodeData/Task/Logical-operations/Python/logical-operations.py

5 lines
116 B
Python

def logic(a, b):
print 'a and b:', a and b
print 'a or b:' , a or b
print 'not a:' , not a