triple_up¶
Return true if the list contains, somewhere, three increasing adjacent numbers like …. 4, 5, 6, … or 23, 24, 25.
This exercise was taken from codingbat.com and has been adapted for the Python language. There are many great programming exercises there, but the majority are created for Java.