Hi,
Is there any online resource that gives examples about advanced python
string, list and map operations?
Today I saw this and I found that I have to work more on mentioned topics:
numbers = [72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33]
print filter(lambda n: n % 2 == 0, numbers)
numbers = [72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33]
print reduce(lambda x, y: x+y, numbers)
Thank you,
Alan
Is there any online resource that gives examples about advanced python
string, list and map operations?
Today I saw this and I found that I have to work more on mentioned topics:
numbers = [72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33]
print filter(lambda n: n % 2 == 0, numbers)
numbers = [72, 101, 108, 108, 111, 44, 32, 119, 111, 114, 108, 100, 33]
print reduce(lambda x, y: x+y, numbers)
Thank you,
Alan
Comment