468,267 Members | 1,843 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,267 developers. It's quick & easy.

Looking for examples related to advanced python string, list and map operations

A.M
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
Jun 15 '06 #1
2 1383
A.M wrote:
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


First Chapter of Text Processing in Python by David Mertz.

James

--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095

http://www.jamesstroud.com/
Jun 15 '06 #2

A.M wrote:
Hi,

Is there any online resource that gives examples about advanced python
string, list and map operations?


http://goog-goopy.sourceforge.net/go...html#-variance
http://oakwinter.com/code/functional/documentation.html

Jun 16 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Angie | last post: by
5 posts views Thread by Robert Brewer | last post: by
36 posts views Thread by Armin Rigo | last post: by
68 posts views Thread by Lad | last post: by
22 posts views Thread by lechequier | last post: by
25 posts views Thread by Byte | last post: by
77 posts views Thread by Ben Finney | last post: by
26 posts views Thread by Frank Samuelson | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.