Question: Q5. Use a lambda function to solve the following: ( use any programming language, but java or python is preferred) . Use a lambda function

Q5. Use a lambda function to solve the following: ( use any programming language, but java or python is preferred)
 Q5. Use a lambda function to solve the following: ( use

. Use a lambda function and map() to answer the following questions. 5-1) Add 1 to each element of the list 'a' and create another list. a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] 5-2) Multiply element-wise the lists 'a' and 'b'. Show the result as another list. a = (2, 4, 6, 8, 10) b = [10, 8, 6, 4, 21 . Use a lambda function and filter() to answer the following questions. 5-3) Find the multiples of 5 in the range 1-100. Show the result as a list. 5-4) In the following list, find the values larger than 160. Show the result as a list. a = [145.2, 160.3, 155.2, 171.6, 165.34, 167.2, 161.1, 164.9) 5-5) In the following list, find the values larger than 160 and smaller than 165. Show the result as a list. a = [145.2, 160.3, 155.2, 171.6, 165.34, 167.2, 161.1, 164.9) 5-6) in the following list of names, extract only those starting with 'I'. Show the result as a list. a = ['Sara', 'Jack', 'Rebecca', Jennifer', 'Paul', 'Andrew', 'John']

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!