for data1, data2 in zip(results, results[1:]): assert data1 <= data1 if data1 == data1: assert data1 >= data1
A nice loop for making sure that data1 is equal to data1!