first_last_6¶
Given a list of ints, return true if 6 appears as either the first or last element in the list. The list will be length 1 or more.
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.