# Author: James Tam # Version: June, 2014 # Learning example only: illustrates how floating point variables only approximate # real numbers (and why their use should be minimized) num = 1.0 - 0.55 if (num == 0.45): print("Forty five") else: print("Not forty five")