has_77¶
Given a list of ints, return true if the list contains two 7’s next to each other, or there are two 7’s separated by one element, such as with {7, 1, 7}.
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.