Run in python 3.x version
Here we write a program to filter a even number from the list using filter and lambda function.
Let suppose The list is:
li = [1,2,3,4,5,6,7,8,9,10]
li = [1,2,3,4,5,6,7,8,9,10] eve_num = filter(lambda x: x%2==0, li) print(eve_num)
Other Codersarts python program:
To view complete codersarts programming click on this link