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

doing this in Python and i have to use a return statement
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 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!