Some questions look not at one element but at two side by side: is it sorted, is it rising, does the same value repeat. For that it is enough to remember the one before as you go.
for i in range(1, len(values)):if values[i - 1] > values[i]:return Falsereturn True
Finding the longest run of the same value is neighbour work too: if the element equals the one before, lengthen the run by one; if not, start the run again at 1; remember the longest at every step.