>>> def a(answer):
	print(% (answer, answer))
	return answer

>>> def b(answer):
	print(% (answer, answer))
	return answer

>>> for i in (False, True):
	for j in (False, True):
		print ()
		x = a(i) and b(j)
		print ()
		y = a(i) or  b(j)



Calculating: x = a(i) and b(j)
  
Calculating: y = a(i) or  b(j)
  
  

Calculating: x = a(i) and b(j)
  
Calculating: y = a(i) or  b(j)
  
  

Calculating: x = a(i) and b(j)
  
  
Calculating: y = a(i) or  b(j)
  

Calculating: x = a(i) and b(j)
  
  
Calculating: y = a(i) or  b(j)