Connecting Tech Pros Worldwide Forums | Help | Site Map

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

A.M
Guest
 
Posts: n/a
#1: Jun 16 '06
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



James Stroud
Guest
 
Posts: n/a
#2: Jun 16 '06

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


A.M wrote:[color=blue]
> 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
>
>[/color]

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/
gene tani
Guest
 
Posts: n/a
#3: Jun 16 '06

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



A.M wrote:[color=blue]
> Hi,
>
>
>
> Is there any online resource that gives examples about advanced python
> string, list and map operations?
>[/color]

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

Closed Thread