# Desktop Python teaching example. Numerical inputs are illustrative.
truth = [True, True, False, False]
readings = [810, 440, 500, 125]  # fictional
predicted = [value > 470 for value in readings]
for actual, estimate in zip(truth, predicted):
    print("TP" if actual and estimate else "FN" if actual else "FP" if estimate else "TN")
