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 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
Get step-by-step solutions from verified subject matter experts
