Question: doing this in Python and i have to use a return statement Given a list of ints, return true if the first element is 3
Given a list of ints, return true if the first element is 3 and the last element is 2 . The array will be length 1 or more. first3Last2 ([3,6,4,6,3,4,7]) False first3Last 2([3,1,6,6,7,5,1,2]) True first3Last2 ([1,3,5,1,3,6,2]) False Save, Compile, Run (ctrl-enter)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
