tests/logical_results.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/logical_results.py Sun Jun 14 23:17:22 2009 +0200 1.3 @@ -0,0 +1,22 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +a = 1 1.7 +b = 0 1.8 +e = a and b or not a and not b 1.9 + 1.10 +if e is False: 1.11 + f = 0 1.12 +else: 1.13 + f = 1 1.14 + 1.15 +e = a and b or a and not b 1.16 + 1.17 +if e is False: 1.18 + g = 0 1.19 +else: 1.20 + g = 1 1.21 + 1.22 +result_0 = f 1.23 +result_1 = g 1.24 + 1.25 +# vim: tabstop=4 expandtab shiftwidth=4