Question: Define a function below, sublist _ of _ first _ three, which takes one parameter: a list. Complete the function to create a new list
Define a function below,sublistoffirstthree, which takes one parameter: a list. Complete the function to create a new list containing the first three elements of the given list and return it You can assume that the provided list always has at least three elements.
This can be implemented simply by creating and returning a list whose elements are the values at the zero'th, first and second indices of the given list. Alternatively, you can use the list slicing notation
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
