dip ch02-04 demo codes. notable ch04/and_or.py