1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tests/logical_simple.py Mon Feb 27 19:06:41 2017 +0100
1.3 @@ -0,0 +1,28 @@
1.4 +a = 1
1.5 +b = 2
1.6 +c = a and b
1.7 +print c # 2
1.8 +
1.9 +d = a or b
1.10 +print d # 1
1.11 +
1.12 +e = not a
1.13 +print e # False
1.14 +
1.15 +if a and b:
1.16 + print "a and b" # a and b
1.17 +
1.18 +if not (a and b):
1.19 + print "not (a and b)" #
1.20 +
1.21 +if not not (a and b):
1.22 + print "not not (a and b)" # not not (a and b)
1.23 +
1.24 +if a or b:
1.25 + print "a or b" # a or b
1.26 +
1.27 +if not (a or b):
1.28 + print "not (a or b)" #
1.29 +
1.30 +if not not (a or b):
1.31 + print "not not (a or b)" # not not (a or b)