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]

For python please. Define a function that takes in a list and prints out the first, middle and last item in the list.SolutionAnswer: Here is the function : def

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site