tests/logical_simple.py | raw changeset files shortlog |
1.1 --- a/tests/logical_simple.py Tue Feb 28 17:00:26 2017 +0100 1.2 +++ b/tests/logical_simple.py Tue Feb 28 17:18:48 2017 +0100 1.3 @@ -1,3 +1,6 @@ 1.4 +def no_temp(a, b): 1.5 + return not (a and b) 1.6 + 1.7 a = 1 1.8 b = 2 1.9 c = a and b 1.10 @@ -11,6 +14,9 @@ 1.11 1.12 f = 0 1.13 1.14 +g = no_temp(a, b) 1.15 +print g # False 1.16 + 1.17 if a and b: 1.18 print "a and b" # a and b 1.19 else: