Question: Write a program in Python including the following functions: a) The first function takes two lists and an integer n as parameter, and returns a

 Write a program in Python including the following functions: a) The

Write a program in Python including the following functions: a) The first function takes two lists and an integer n as parameter, and returns a list consisting of the n'th elements of both lists, if exists. Assume that both lists are the same size. Sample Run: f1 ([5,2,7,4],[1,4,6,8],3) #takes 3rd indexed elements of both lists Result [48] fl ([5,2],[1,4],3) /# neither of the lists has a 3rd indexed element Result

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!