For python please Define a function that takes in a list and
For python please.
Define a function that takes in a list and prints out the first, middle and last item in the list.Solution
Answer:
Here is the function :
def func(l[ ])
print \"first term\", l[1]
print \"mid term\", l(len(l)/2)
print \"last term\", l[-1]
