def lessThan1(seq):
for index, value in enumerate(seq[:-1]):
if value >= seq[index+1]:
return False
return True
def lessThan2(seq):
func = lambda x, y: x < y
return all(map(func, seq[:-1], seq[1:]))
from operator import lt
def lessThan3(seq):
return all(map(lt, seq[:-1], seq[1:]))