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]
Solution:
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:
For given latitude value check the location on equator in python
Calculate distance between two points on Earth the latitute and longitude given in degrees
Write a program of Rational Numbers Addition,Subtraction, Multiplication, Division in python
Design and implement a "Golf Club" program that records information about golfers and tournaments
Concatenate First, mid and last character of String in Python
A set of utilities to manipulate polynomials, Addition, subtraction, Multiplication and evaluation
To view complete codersarts programming click on this link