| about | help | done | prefs | create account |
Python > List-1 > first_last6
prev | next | chance
| Given an array of ints, return True if 6 appears as either the first or last element in the array. The array will be length 1 or more.
first_last6([1, 2, 6]) → True first_last6([6, 1, 2, 3]) → True first_last6([3, 2, 1]) → False ...Save, Compile, Run See also Python Example Code. Python help docs: Python Strings | Python Lists | Python If Boolean |
Forget It! -- delete my code for this problem 103.0
Copyright Nick Parlante 2006-10 - privacy